how you will prevent inheritance is there any other way
other than inheritance?
Answers were Sorted based on User's Feedback
Answer / raju
One way to prevent inhertance is final class
2) Using private Constructor in a class we can prevent
inhertance[Single ton class ]
Alternate of in hertance are
delegation,composition, aggrigration etc..
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / marx
If you declare the class as a final,we cant inherit the
class.
Is This Answer Correct ? | 5 Yes | 3 No |
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What is string length in java?
Explain Stream Tokenizer?
What is the difference between an argument and a parameter?
What are the steps in the jdbc connection?
Is java code slower than native code?
How can we make sure main() is the last thread to finish in java program?
What are the 3 types of control structures?
What is an argument in java?
Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
What are use cases?
How many ways can you break a singleton class in java?