- Joined
- Jun 20, 2012
- Messages
- 1
- Reaction score
- 0
why do we need polymorphism? because if declared function as a virtual, we need to override it in all class and accessing has to be done creating ptr to class and using that pointer we need to access the function of other class. instead of we can also create a object for respective class and access fuction through it.