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

Can Exception handling we can handle multiple catch blocks?

990


What is classes in java?

899


What is bom encoding?

959


What is stringbuffer in java?

1010


How is java created?

903


What are synchronized methods ?

1060


What does || mean in vectors?

899


How do you read a char in java?

962


What is use of inner class in java?

1064


How do you use find and replace?

916


What is an example of character?

1077


Explain the importance of join() method in thread class?

1068


What is the similarity between dynamic binding and linking?

1073


What is treeset and treemap in java?

1026


What is qualitative variable?

886