Explain shallow copy?
No Answer is Posted For this Question
Be the First to Post Answer
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
Explain calling an object's member function(declared virtual)from its constructor?
Is there any difference between int [] a and int a [] in c++?
How to tokenize a string in c++?
How to demonstrate the use of a variable?
Why is it called c++?
Write about the role of c++ in the tradeoff of safety vs. Usability?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What is srand c++?
Why was c++ created?
What is void pointer in c++ with example?
Define private, protected and public access control.