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 long in c++?

739


Explain the purpose of the keyword volatile.

638


What is an adaptor class or wrapper class in c++?

608


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

619


What are proxy objects in c++?

645






What is meant by entry controlled loop?

661


what are the decision making statements in C++? Explain if statement with an example?

654


what is C++ exceptional handling?

632


What are the various storage classes in C++?

652


What is iostream in c++ used for?

551


Using a smart pointer can we iterate through a container?

565


If you don’t declare a return value, what type of return value is assumed?

542


What is near, far and huge pointers? How many bytes are occupied by them?

663


What is data types c++?

546


What are the advantages of using a pointer?

609