How to avoid a class from instantiation?

Answer Posted / vidushi

Make the class abstract
abstract class abc
{
.....
.....
};

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 a constructor and how is it called?

591


What is the size of a vector?

575


Why is c++ a mid-level programming language?

589


How much is c++ certification?

582


Who made c++?

605






What is the use of default constructor?

567


How compile and run c++ program in turbo c++?

629


Is there a c++ certification?

601


What is private, public and protected inheritance?

585


How a pointer differs from a reference?

692


What is a c++ class?

610


Write a c program for binary addition of two 8 bit numbers.

3663


What is input operator in c++?

584


What is the benefit of encapsulation?

592


Define stacks. Provide an example where they are useful.

575