class X
{
private:
int a;
protected:
X(){cout<<"X constructor was called"<<endl;}
~X(){cout<<"X destructor was called"<<endl}
};
Referring to the code above, which one of the following
statements regarding "X" is TRUE?
a) X is an abstract class.
b) Only subclasses of X may create X objects.
c) Instances of X cannot be created.
d) X objects can only be created using the default copy
constructor.
e) Only friends can create instances of X objects.
Answer Posted / guest
only subclasses of X may create X objects.
i.e and B
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
How do I exit turbo c++?
What parameter does the constructor to an ofstream object take?
Eplain extern keyword?
Do vectors start at 0?
What is the use of typedef?
How we can differentiate between a pre and post increment operators during overloading?
What's the hardest coding language?
What does std :: flush do?
What are virtual functions in c++?
What is command line arguments in C++? What are its uses? Where we have to use this?
Write about the stack unwinding?
Explain the register storage classes in c++.
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Explain the isa and hasa class relationships.