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

Thanks for the detailed answer. It's really pleased me the
way your answer is. Initially I wrote 'partial
implementation' since I couldn't get the details out of
your first answer. I am looking at the codeguru solution.
Thanks once again.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the uses of static class data?

713


Why is main function important?

686


What is the difference between map and hashmap in c++?

661


Explain linked list using c++ with an example?

717


Can circle be called an ellipse?

732






Define stacks. Provide an example where they are useful.

677


What is atoi?

631


What is the importance of mutable keyword?

682


Describe the syntax of single inheritance in C++?

735


Explain how the virtual base class is different from the conventional base classes of the opps.

793


What is split a string in c++?

780


Is swift better than c++?

628


What return value must conversion operators have in their declaration?

700


Can user-defined object be declared as static data member of another class?

635


What is runtime polymorphism in c++?

684