how you will prevent inheritance is there any other way
other than inheritance?
Answer Posted / 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 |
Post New Answer View All Answers
Can Exception handling we can handle multiple catch blocks?
What is classes in java?
What is bom encoding?
What is stringbuffer in java?
How is java created?
What are synchronized methods ?
What does || mean in vectors?
How do you read a char in java?
What is use of inner class in java?
How do you use find and replace?
What is an example of character?
Explain the importance of join() method in thread class?
What is the similarity between dynamic binding and linking?
What is treeset and treemap in java?
What is qualitative variable?