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 |
Do extraneous variables affect validity?
What are the wrapped, classes?
what is object type casting? give some example with related?
What does += mean coding?
What is Marker interface in java? and what is clone?
Write a java program for binary search?
Can we overload the main() method?
when there is a need of jvm then how we can say that java is a platform independent language?
What method is used to compare two strings ?
What is the is a and has a relation ship in oops concept in java?
I want to print “hello” even before main is executed. How will you acheive that?
There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....