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 |
What is %02d?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Can an object be garbage collected while it is still reachable?
Explain your academic project?
2 Answers Accenture, Levonsys, SDF, TCS, Tech Mahindra,
What is the difference between applet and application?
What is difference between char array and string?
What is the Vector class?
What interface is extended by awt event listeners?
What is a treemap in java?
i need source code for income tax program using java inheritance
What is hash in java?
why Java does not support multiple inheritances?