How would you stop a class from class from being derived or
inherited.
Answer Posted / vishaka
The class shoul be made abstract to stop it from being
derived or inherited. To make a class abstract, it should
have atleast one pure virtual function.
| Is This Answer Correct ? | 2 Yes | 21 No |
Post New Answer View All Answers
#include
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is constructor overloading in oop?
What is interface in oop?
What is encapsulation with real life example?
What is the oops and benefits of oops programming?
How do you achieve polymorphism?
What makes a language oop?
What is encapsulation in oops?
What is object in oops?
Why do we use inheritance?
Explain the concepts involved in Object Oriented programming.
to find out the minimum of two integer number of two different classes using friend function
Are polymorphisms mutations?
What is constructor in oop?