polymorphism

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top