Object Orientated Programming (OOP) Flashcards
1
Q
define polymorphism
A
Polymorphism refers to the ability to redefine the () method of the subclass that has been inherited from the super class. The inherited code is overwritten meaning that the subclass and class respond differently to any message received.
2
Q
explain the operation and effect of this line of code:
.add(, )
A
A new element (consisting of ITEM1 and ITEM2) is added to the array of objects that belongs to the object called .