Should you pass exceptions by value or by reference?
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
Describe functional overloading?
Explain virtual class and friend class.
What is a friend function in c++?
When do you call copy constructors?
What it is and how it might be called (2 methods).
int *p = NULL; printf("%1d",p) ; what will be the output of this above code?
Can we use this pointer in a class specific, operator-overloading function for new operator?
What is flush c++?
What is the best it certification?
What is virtual destructor? What is its use?
Which one is better- macro or function?