Inheritance
Inheritance
Generalization and
Specialization.
1. Generalization: The derivation is bottom up.
2. Specialization: The derivation is top-bottom.
3. We can see both in the form of hierarchy.
4. Specialization is achieved using inheritance.
5. Generalization is achieved using interface.
6. If you want to achieve something between Specialization
or Generalization the it can be achieved it using Abstract
Class.
3. Common Methods
a. get methods.
b. set methods.
c. constructors.
4. Saving Accounts:
Methods:
a. Deposit.
b. Withdraw.
c. Fixed Deposit.
e. liquidate.
5. Loan Accounts:
a. pay emi.
b. top up loan.
c. repayment.