What is friend class in c++ with example?
No Answer is Posted For this Question
Be the First to Post Answer
What are c++ variables?
How do we balance an AVL Tree in C++?
Define a program that reads two matrices of size 3x3 with real values from the user then prints their sum, difference and multiplication.
What is ios flag in c++?
What are static type checking?
What is function overloading c++?
Which is not a valid keyword a) public b) protected c) guarded
What is the use of function pointer?
Why preincrement operator is faster than postincrement?
Explain the concept of memory leak?
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.
Is c++ vector dynamic?