Mapa mental
Inheritance and Polymorphism
Contenido del mapa
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
Información
- Descripción
- Informática II Mapa Mental sobre Inheritance and Polymorphism, creado por anyelo.amado el 16/03/2014.
- Creado por
- anyelo.amado
- Visitas
- 43
- Etiquetas
- Valoración