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
program for insertion ,deletion,sorting in double link list
What is polymorphism programming?
What is the difference between inheritance and polymorphism?
How do you use inheritance in unity?
What is static in oop?
Advantage and disadvantage of routing in telecom sector
What is the difference between encapsulation and polymorphism?
What is multilevel inheritance in oop?
What are the types of abstraction?
What is the significance of classes in oop?
What is stream in oop?
What are the benefits of interface?
Get me an image implementation program.
Why is encapsulation used?
Why do pointers exist?