Answer:
Java Class given below
Explanation:
class ReadOnly
{
protected int val;
public ReadOnly(int arg)
{
val = arg;
}
public int getVal()
{
return val;
}
}
class ReadWrite extends ReadOnly
{
private boolean dirty;
public ReadWrite(int arg)
{
super(arg);
dirty = false;
}
public void setVal(int arg)
{
val = arg;
dirty = true;
}
public boolean isDirty()
{
return dirty;
}
}
Answer:
The problem is the team leader thinks he/she is better than other team members?
Explanation:
He/She thinks or to show that no other team leader is as good as him/her.