diff between Virtual mathod and abstract method?

Answer Posted / pawan kumar

Virtual methods have an implementation and provide the derived classes with the option of overriding it. Abstract methods do not provide an implementation and force the derived classes to override the method. So, abstract methods have no actual code in them, and subclasses HAVE TO override the method.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use class in oops?

537


How do you define social class?

583


What is the important feature of inheritance?

604


What is the importance of oop?

589


What are the data types in oop?

581






Why is there no multiple inheritance?

546


Why do we use oop?

577


What is the difference between inheritance and polymorphism?

569


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1872


How to use CMutex, CSemaphore in VC++ MFC

4298


write a programe to calculate the simple intrest and compund intrest using by function overlading

1643


What is the real life example of polymorphism?

584


What are the three parts of a simple empty class?

1428


Why is encapsulation used?

550


What is static modifier?

612