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

explain local datetime api in java8?

966


What is thread start?

913


Which is bigger double or float?

911


What are streams?

1058


What are jee technologies?

961


What is another word for methodology?

970


What is use of static in java?

1087


What is the difference between applet and application?

948


Is main a keyword in java?

916


What is nested interface?

959


What is java oops?

995


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

1201


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

931


Why strings in java are called as immutable?

946


What is hasnext in java?

970