Mindmap
Inheritance and Polymorphism
Inhalt der Mindmap
Inheritance and Polymorphism
Superclass and Subclass
- A superclass has instance variables and methods that are general to all subclasses
- class SavingsAccount extends BankAccount
- SavingsAccount is a BankAccount
- class SavingsAccount extends BankAccount
- Constructors
- Instance variable initialization
- may
- Call to a constructor of the superclass explicitly in the constructor of the subclass.
- Member Accessibility
- Are
- Public
- Private
- Protected
- Package visibility
- Are
- A superclass has instance variables and methods that are general to all subclasses
Abstract Superclasses
- have
- Abstract Methods
- Method without implementation
- can be
- overwritten
- public abstract void CalculateBalance ();
- Abstract Methods
- no instances can be created
- abstract class BankAccount
- have
OBJECT ORIENTED PROGRAMMING
- Interface
- Is
- Data type
- have
- Signature of methods
- class SavingsAccount extends BankAccount implements transfer
- Is
- Interface
Polymorphism
- is
- multiple answers a call
- is
Informationen
- Beschreibung
- Informática II Mindmap am Inheritance and Polymorphism, erstellt von anyelo.amado am 16/03/2014.
- Erstellt von
- anyelo.amado
- Aufrufe
- 43
- Tags
- Bewertung