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 does no cap mean?
What is encapsulation with example?
What is advantage of inheritance?
What type of loop is a for loop?
What is static modifier?
Why is static class not inherited?
What is a function in oop?
What is an advantage of polymorphism?
What is abstraction encapsulation?
write a programe to calculate the simple intrest and compund intrest using by function overlading
Can you inherit a private class?
Why polymorphism is used in oops?
What is abstraction oop?
What makes a language oop?
Why is object oriented programming so hard?