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 / abhishek

i think we r discussing c++ not java MR S.v.vignesh.....

!!

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ an integer?

579


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

640


Out of fgets() and gets() which function is safe to use?

643


What do you mean by persistent and non persistent objects?

742


What is the difference between containment and delegation?

706






What is a rooted hierarchy?

687


Explain the difference between realloc() and free() in c++?

540


What is virtual base class uses?

714


What is a local variable?

582


What is stoi in c++?

704


Implement stack operations with pointers with appropriate exception checks.

569


What is the use of setfill in c++?

592


Can you write a function similar to printf()?

669


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

604


How is modularity introduced in C++?

770