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 are the types of abstraction?

0 Answers  


difference between overloading and overridding

11 Answers  


Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


write a c++ code of diagonal matrix.

2 Answers  






Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


what isthe difference between c structure and c++ class

5 Answers  


what i oops concept, how many languages supports oops concept?

3 Answers   Value Labs,


What is the difference between an object and a class?

3 Answers  


What are the advantages of polymorphism?

0 Answers  


What is abstraction in oops?

0 Answers  


What is abstraction in oops with example?

0 Answers  


Categories