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
:)
Main Answer:In the classic experimental design, there are two groups: the <u>treatment group and the control group.</u>
<u>Sub heading:</u>
<u>Explain treatment group and control group?</u>
Explanation:
1.The treatment group also known as the experimental group receives the treatment that the researcher is evaluating.
2.the control group on the other hand does not receive the treatment.
Reference link:
https://brainly.com
Hashtag:
#SPJ4