diff between Virtual mathod and abstract method?



diff between Virtual mathod and abstract method?..

Answer / 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

More OOPS Interview Questions

What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

4 Answers   Accenture, L&T,


What is multidimensional array?

1 Answers  


Why is abstraction used?

0 Answers  


What are the benefits of polymorphism?

0 Answers  


Why is object oriented programming so hard?

0 Answers  


what is difference b/w object based and object oriented programming language?

18 Answers   Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,


What is Dynamic Polymorphism?

13 Answers  


What are the benefits of interface?

0 Answers  


What does and I oop and sksksk mean?

0 Answers  


what is a virtual class?

5 Answers   Cap Gemini, IBM, Infosys, Trinity Technologies,


what is the advantage in software? what is the difference between the software developer and Engineer

1 Answers  


oops concept is used for?

3 Answers   Synergy,


Categories