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 |
Why should I use abstract class?
Can try statements be nested?
Explain Big-O notation with an example
Explain about main thread in java?
Difference between canvas class & graphics class?
What is the purpose of the file class in java programming?
What is anagram word?
why we cannot declare static variable inside a static method
Which package has light weight components in java programming?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
what is servlet enginee?
Can a top level class be private or protected?