Mapa mental
Inheritance and Polymorphism
Conteúdo do 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
Informações
- Descrição
- Informática II Mapa Mental sobre Inheritance and Polymorphism, criado por anyelo.amado em 16-03-2014.
- Criado por
- anyelo.amado
- Visualizações
- 43
- Tags
- Avaliação