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
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
What is dynamic and static typing?
Can we declare a base-class destructor as virtual?
What are special characters c++?
What is the use of string in c++?
Is atoi safe?
What is meaning of in c++?
Do class declarations end with a semicolon?
What are the c++ access specifiers?
What is the type of this pointer in c++?
What is a responder chain?
What are multiple inheritances (virtual inheritance)?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What are the two types of comments, and how do they differ?
How many characters are recognized by ANSI C++?