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

how to create thread in java?

17 Answers   IBM, Infosys, Wipro,


Whatis the difference between oop and object based language

3 Answers  


officer say me - i am offered to a smoking , then what can you say

0 Answers  


Why is oop useful?

0 Answers  


what is diff between .net 1.1 and .net 2.0

4 Answers  


Why u change company?

12 Answers   BOB Technologies,


The type of variable a pointer points to must be the part of pointer's definition so that:

1 Answers   Infosys,


What is encapsulation in oops?

0 Answers  


2. Give the different notations for the class.\

0 Answers  


What is the problem with multiple inheritance?

0 Answers  


Can enum be null?

0 Answers  


different types of castings

3 Answers   Siemens,


Categories