An advantage of inheritance is that:
a. All methods can be inherited.
b. All instance variables can be uniformly accessed by subclasses and superclasses.
c. Objects of a subclass can be treated like objects of their superclass.
d. None of the above.
c. Objects of a subclass can be treated like objects of their superclass.
Computer Science & Information Technology
You might also like to view...
The OR function returns TRUE if any one of its arguments is true
Indicate whether the statement is true or false.
Computer Science & Information Technology
Which of the following statements is used to insert a new node, referenced by newNode, at the end of a linear linked list?
a) newNode.setNext(curr); prev.setNext(newNode); b) newNode.setNext(head); head = newNode; c) prev.setNext(newNode); d) prev.setNext(curr); newNode.setNext(curr);
Computer Science & Information Technology