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 / mms zubeir

All the answers above are wrong. Guys, Don't provide some
junk answers! It may be misinterpretted by someone who has
less knowledge about the subject.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vectorial capacity?

653


When do we use copy constructors?

597


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

604


What is const pointer and const reference?

597


Difference between pointer to constant and constant pointer to a constant. Give example.

652






What is a tuple c++?

550


What is a loop? What are different types of loops in c++?

595


What are the uses of c++ in the real world?

566


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

547


Which is most difficult programming language?

582


What is virtual base class?

575


Can I learn c++ in a week?

583


When one must use recursion function? Mention what happens when recursion functions are declared inline?

653


Explain class invariant.

588


Can member data be public?

599