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 data binding?

4 Answers   Ittiam Systems,


What is abstraction in oops with example?

0 Answers  


why overriding?

3 Answers  


Who invented oop?

0 Answers  


What is object and class in oops?

0 Answers  






What do you mean by overloading?

0 Answers  


What is an example of genetic polymorphism?

0 Answers  


tell about copy constructor

3 Answers   Siemens,


What is the main difference between C++ and Java

11 Answers   TCS,


What are oops methods?

0 Answers  


what is code for call by value and call by reference?

1 Answers  


What are the benefits of interface?

0 Answers  


Categories