when you decide to use an Abstract class?

when you want one abstract class perform different operation in different object case then use abstract class .
BankAccount have methods like-
1-Balance Check
2-display account info
4-Update Balance

Account have different type of account such as -
1:-Saving Account
2:Current Account
3:-Student Account
all these account have same functionality but performe different task
          so you use BankAccount as abstract class and its method as abstract method 

1 comment :

  1. give some other examples that can be better for understand