How to avoid a class from instantiation?

Answer Posted / sanish joseph

Make an abstract class.abstract class cant b intialized.
I think so....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some examples of operator overloading?

648


What is the use of bit fields in structure declaration?

544


What is difference between class and structure in c++?

623


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

1743


Which coding certification is best?

574






What is general format for a prototype?

601


When must you use a pointer rather than a reference?

608


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1869


What does floor mean in c++?

582


What is difference between rand () and srand ()?

596


What are references in c++? What is a local reference?

576


What is the main function c++?

604


What are friend functions in C++?

625


What is the use of setfill in c++?

592


Which bitwise operator is used to check whether a particular bit is on or off?

594