Write a subclass named
Write a subclass named<span< h1=””> style=”color:rgb(34,34,34);”> ‘ReadWrite’ with the following additional behavior :Any necessary constructors . </span<> a method named ‘setVal’ that accepts an integer parameter and assigns it the the ‘val’ instance variable . a method ‘isDirty’ that returns true if the setVal method was used to override the value of the ‘val’ variable . This is what I have: class ReadWrite extends ReadOnly { super(int val); void setVal(int val){this.val = val;} boolean isDirty() {if (setVal()(return true)) else return false;}} […]