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 is static modifier?
What does and I oop mean?
How do you achieve runtime polymorphism?
write a program that takes input in digits and display the result in words from 1 to 1000
What does oop mean in snapchat?
What are the benefits of polymorphism?
Which is better struts or spring?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Which is not an object oriented programming language?
What is the advantage of oop over procedural language?
Whats is abstraction in oops?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
Why is static class not inherited?
Write a program to sort the number with different sorts in one program ??
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?