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

Why do we use virtual functions?

4 Answers  


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


why function overloading is not called as pure polymorphism?

2 Answers  


what is the difference between containership and inheritence?

1 Answers  


What's the full form of STL?

2 Answers  






What is the purpose of enum?

0 Answers  


Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??

1 Answers  


what is function over loading?

5 Answers  


What is property in oops?

0 Answers  


How to overload postfix operator in c++

1 Answers   Mphasis,


What is difference between function overloading and overriding?

1 Answers   emc2,


Write 7 differences between "Public" function and "Private" function?

2 Answers   IBM, Wipro,


Categories