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 inheritance?

815


What is inheritance in simple words?

812


What is difference between polymorphism and inheritance?

808


What does I oop mean?

831


How do you explain polymorphism?

799


Why is encapsulation used?

765


Explain the concepts involved in Object Oriented programming.

869


What is oops and its features?

823


What is polymorphism give a real life example?

760


what is difference between class template and template class?

2393


What is object and class in oops?

777


What are the advantages of polymorphism?

756


What is the full form of oops?

908


Why is polymorphism needed?

784


What is abstraction in oop with example?

852