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 diff bet iterator and enumeration?
i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.
Does any tag exists in HTML to upload and download files ?
What are the uses of final, finally and finalize in java?
2 Answers Agiline, FINO PayTech, HCL,
What is the java idl system?
What is replacefirst in java?
Write a program to search a number in the given list of numbers.
What is a variable simple definition?
how to connect two diffrent applet files
What is string in java? String is a data type?
What is better - 'bit-shift a value' or 'multiply by 2'?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,