Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which container method is used to cause a container to be laid out and redisplayed in java programming?

1112


Explain jvm, jre, and jdk?

1018


What is meant by oops concept in java?

1002


Implement two stacks using a single array.

1073


Is singleton class thread safe?

1003


What is main string [] args?

995


Give any two differences between C++ and java.

1153


how to create constants in java?

1091


What data type is true or false?

1050


How are multiple inheritances done in Java?

1147


What is a ternary operator in java? What is an interface?

1004


What are methods and how are they defined?

1213


What is difference between classpath and path variables in java?

1201


why an outer class cannot be declared as private?

4327


How will you reverse a singly-link list?

1011