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

Is integer passed by reference in java?

1007


Why is a constant variable important?

950


What is an image buffer?

990


What is javac used for?

937


Is singleton class thread safe?

994


Define an abstract class with reference to java.

994


Explain the importance of finally block in java?

958


Does java vector allow null?

952


Is null in java?

998


What is a pattern what is an anti pattern?

967


How do you pass by reference?

1051


What is the differences between heap and stack memory in java? Explain

980


What is functional interface in java?

1043


How to sort array in descending order in java?

919


What is the maximum size of a string in java?

1098