How would you stop a class from class from being derived or
inherited?The constructer should not be Private,as object
instantiation should be allowed.
Answer Posted / duke
Use virtual class concept
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Tell me can a pure virtual function have an implementation?
What are the two shift operators and what are their functions?
What is ios in c++?
What is Destructor in C++?
What is the difference between the compiler and the preprocessor?
What are the differences between new and malloc?
In a function declaration what does extern means?
What is a responder chain?
What are arithmetic operators?
What is function prototyping?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What are c++ storage classes?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is the copy-and-swap idiom?
What is virtual function? Explain with an example