Why do we use classes in c++?
No Answer is Posted For this Question
Be the First to Post Answer
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.
Do you know about C++ 11 standard?
0 Answers Agilent, ZS Associates,
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What is a dangling pointer?
What is the use of endl in c++ give an example?
Explain how an exception handler is defined and invoked in a Program.
Describe private, protected and public – the differences and give examples.
What is a built-in function?
Write any small program that will compile in "C" but not in "C++"?
is throwing exception from a constructor not a good practice ?
What is the difference between structures and unions?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?