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 the need of abstraction? what is abstraction?what is the abstraction for stack?

8 Answers   CTS, Verizon,

what is virtual destructor

7 Answers   L&T, TCS,

write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

1 Answers   TCS, HCL, College School Exams Tests, IBM,

What is a scope operator and tell me its functionality?

3 Answers   emc2,

who is the founder of c++?

15 Answers   ONGC, Hexaware,

Difference between new operator and operator new

2 Answers  

Why do we use virtual functions?

4 Answers  

How to calculate the age from the date of birth by using the program?

2 Answers   Accenture,

What are the advantages of inheritance?

26 Answers  

20% of a 6 litre solution and 60% of 4 litre solution are mixed what the % of mixture of solution it is resulted into?

5 Answers   IonIdea,

what are the different types of qualifier in java?

0 Answers   TCS,

#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }

1 Answers