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 |
why freind function takes more parameter than normal member function in c++?
#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]]; }
What is encapsulation selenium?
What is the difference between a constructor and a destructor?
What is polymorphism and why is it important?
whats the difference between c and c++
WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
Why do we use class?
What is polymorphism? Explain with an example.
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....
Whats is abstraction in oops?
What does <> mean pseudocode?