How do you make derived class as an abstract class?



How do you make derived class as an abstract class?..

Answer / karthick s

We can make the derived class as an abstract,by inheriting
the class(base) which containing one pure virtual function.
After inheriting, we can't override it in derived class.
Then the derived class becomes abstract...

Is This Answer Correct ?    22 Yes 4 No

Post New Answer

More OOPS Interview Questions

why freind function takes more parameter than normal member function in c++?

1 Answers   IBM,


#include <iostream> using namespace std; int main() { int a = 2; 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][c[1][4]]; }

2 Answers   TCS, Wipro,


What is encapsulation selenium?

0 Answers  


What is the difference between a constructor and a destructor?

0 Answers  


What is polymorphism and why is it important?

0 Answers  


whats the difference between c and c++

7 Answers   Syntel,


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


Why do we use class?

0 Answers  


What is polymorphism? Explain with an example.

48 Answers  


what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....

6 Answers  


Whats is abstraction in oops?

0 Answers  


What does <> mean pseudocode?

0 Answers  


Categories