Skip to content

Tag: inheritance

Printing String Attribute Inherited from SuperClass shows Null

I am extending a class and using the super keyword to in my subclass constructors. However, when I attempt to print the inherited attribute String. It returns null } So when I create a TrueFalseQuestion object and call its getQuestion() method, I get output: null True/False? Why is it not printing the questio…