AP CSA Chapter 7 Flashcards
Terms : Hide Images [1]
8688419555 | Polymorphism | ability of a reference variable to refer to different types of objects bound at different times | 0 | |
8688419556 | Polymorphic reference | reference variable that can refer to different object types at different times (usable on abstract classes) | 1 | |
8688419571 | Override | when the subclass changes the superclass's definition in an inherited method | 2 | |
8688419574 | Sibling | subclasses that are similar and are of the same superclass | 3 | |
8688419585 | Inheritance | when a new class is created from an existing class (ONLY occurs between classes) | 4 | |
8688419586 | Software reuse | using existing software to make new programs | 5 | |
8688419587 | Parent class (superclass or base class) | existing class that creates a new class (inherited variables and methods are used as if they are locally declared) | 6 | |
8688419588 | Child class (subclass or derived class) | new class that inherits definitions of the existing class (are always more specific than existing classes) | 7 | |
8688419589 | extends | reserved word that indicates a subclass is created from an superclass | 8 | |
8688419595 | super | reserved word that is used to refer to the superclass and invokes the superclass's constructor only from the subclass's constructor (first line of the constructor is the super reference) | 9 | |
8688419596 | Single inheritance | only one superclass exists | 10 | |
8688419597 | Multiple inheritance | multiple superclasses exists | 11 |