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 would you stop a class from class from being derived or
inherited?The constructer should not be Private,as object
instantiation should be allowed.

Answer Posted / boriska

make destructor private. Derived class would not be able to
access it, and compiler will produce error, when instance of
derived class is deallocated.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you say that a template is better than a base class?

1039


What is public, protected, private in c++?

1115


What character terminates all character array strings a) b) . c) END

1222


What is an object in c++?

1168


What is istream c++?

1138


Which should be more useful: the protected and public virtuals?

993


What is the use of class in c++?

1025


How is modularity introduced in C++?

1163


What is a class template in c++?

1020


What is increment operator in c++?

984


What is a storage class? Mention the storage classes in c++.

984


How much do coding jobs pay?

973


Write a program to show polymorphism in C++?

1100


What is data structure in c++?

1108


What are the benefits of operator overloading?

1167