my question is about number 3. i do have te Subclass.java filebut i dont know what code i should write in order to inherits thefile.and this is the BaseClass.java file when i open it
thank you.
and this is the SubClass java fileWe were unable to transcribe this imageLocalPackagesMicrosoft.MicrosoftEdge_8wekyb3d8bbweTempStat… Window Help – O Run Arguments L). MON 1 public class BaseClass { // TODO – write your code below this comment. // As a hint, this will need to save the String // given in the constructor in order to print it // out later. codes (comp110L) – GRASP CSD (Java) – 0 Help +* un Arguments 1 // DO NOT MODIFY ANYTHING IN THIS FILE!! 2 public class Subclass extends BaseClass { 3 public SubClass(String str) { super(str); public static void main(String[] args) { Subclass sub = new Subclass(args[@]); sub.printString(); le 11 } 12 L SubOverride (1) Java (BaseOverride (1) Java SubClass.java Compile Messages GRASP Messages Run 1/0 Interactions Stop Clear andout 17.java State variable cannot be referenced static conte Copy Show transcribed image text
LocalPackagesMicrosoft.MicrosoftEdge_8wekyb3d8bbweTempStat… Window Help – O Run Arguments L). MON 1 public class BaseClass { // TODO – write your code below this comment. // As a hint, this will need to save the String // given in the constructor in order to print it // out later.
codes (comp110L) – GRASP CSD (Java) – 0 Help +* un Arguments 1 // DO NOT MODIFY ANYTHING IN THIS FILE!! 2 public class Subclass extends BaseClass { 3 public SubClass(String str) { super(str); public static void main(String[] args) { Subclass sub = new Subclass(args[@]); sub.printString(); le 11 } 12 L SubOverride (1) Java (BaseOverride (1) Java SubClass.java Compile Messages GRASP Messages Run 1/0 Interactions Stop Clear andout 17.java State variable cannot be referenced static conte Copy
Expert Answer
Answer to my question is about number 3. i do have te Subclass.java file but i dont know what code i should write in order to inhe…