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
Explain virtual destructor?
Difference between pointer to constant and constant pointer to a constant. Give example.
What is malloc in c++?
What are the two main components of c++?
What are guid? Why does com need guids?
Explain public, protected, private in c++?
What is purpose of abstract class?
Why do we use classes in c++?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Why we use #include iostream in c++?
Which is the best c++ compiler for beginners?
What is the precedence when there is a global variable and a local variable in the program with the same name?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is the benefit of learning c++?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00