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
Does a derived class inherit or doesn't inherit?
Can constructor be static in c++?
What is class and structure in c++?
What is new in c++?
If I is an integer variable, which is faster ++i or i++?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
what is pre-processor in C++?
Is c++ harder than java?
Explain some examples of operator overloading?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What is a virtual destructor? Explain the use of it?
Define the process of error-handling in case of constructor failure?
Explain static and dynamic memory allocation with an example each.
How do you initialize a string in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.