Explain operator overloading.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the difference between the parameter to a template and the parameter to a function?

0 Answers  


What is a protocol class?

1 Answers  


Describe friend function & its advantages.

0 Answers   TCS,


What is array in c++ pdf?

0 Answers  


What are vtable and vptr?

0 Answers  


What is the limitation of cin while taking input for character array?

0 Answers  


What is a terminating character in c++?

0 Answers  


Can manipulators fall in love?

0 Answers  


What is the best way to declare and define global variables?

0 Answers  


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

1 Answers  


How to declare a function pointer?

0 Answers  


Which one is better- macro or function?

0 Answers   Fidelity,


Categories