I have a question what grade are you in
I SURE HOPE IT DOES (this is the best vibe if you dont get this you are an uncultured swine)
The correct answer would be D
Answer:
I believe you want a subclass so here it is!
public class ReadWrite extends ReadOnly {
public ReadWrite(int initialValue){
super(initialValue);
}
private boolean modified = false;
public void setVal(int x) {
val = x;
modified = true;
}
public boolean isDirty() {
return modified;
}
}
Explanation:
I might be wrong, just check through it in case
Hope this helped
:)
Answer:
Cause they are trying to be annoying
Explanation:
Something is wrong with them :)