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
What are the advantages of polymorphism?
What is basic concept of oop?
What is inheritance and how many types of inheritance?
Why interface is used?
How to use CMutex, CSemaphore in VC++ MFC
What is encapsulation with example?
What are the types of abstraction?
Can private class be inherited?
Is data hiding and abstraction same?
What is a class and object?
What is the main purpose of inheritance law?
Why do we use oop?
Why is oop useful?
How do you explain polymorphism?
What exactly is polymorphism?