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 abstraction?

9 Answers  


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

2 Answers  


How to deploy web appliction in web logic ?

1 Answers   Unisys,


Whatis the difference between oop and object based language

3 Answers  


What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required

15 Answers   Wipro, ISTS,






what is an qt4 interface?

1 Answers   IBM,


What is operator overloading? Give Example

11 Answers   TCS, IBM, CTS,


why c++ is a highlevel language

3 Answers   Satyam, Tech Mahindra,


What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile

4 Answers  


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

0 Answers  


What are the OOPS concepts?

106 Answers   TCS, Wipro, Infosys, CTS, Intel, Virtusa, MNC, EDS, Persistent, Microsoft, A1 Technology, Bajaj, HP, PlanetSoft, ProConstructor, YSoft Solutions,






Categories