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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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 .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly