How would you stop a class from class from being derived or
inherited.
Answer Posted / bala
Final will do in Java. But not in C++.
I hope, bye creating all the constructor,copy constructor
in private will stop inherite the class.
Plz refer 'Singleton Pattern'
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are oops methods?
What is the diamond problem in inheritance?
What is persistence in oop?
What is encapsulation oop?
What are the advantages of polymorphism?
Why do we use polymorphism in oops?
What is the types of inheritance?
Prepare me a program for the animation of train
What do you mean by variable?
What is pointer in oop?
What is encapsulation in oop?
How to call a non virtual function in the derived class by using base class pointer
Which language is not a true object oriented programming language?
What is the difference between abstraction and polymorphism?
What is pure oop?