All IT and Non IT Interview Questions, MCQs, Online Quiz Questions, Engineering VIVA Questions
Wednesday, 18 April 2012
Explain how overloading takes place in C++. | C++
C++ supports two types of overloading namely, function overloading and operator overloading. Function overloading helps in defining more than one function with the same name, but with different signatures. An error is raised if two overloaded functions are provided with the same function signature. Operator overloading helps in giving special meanings to operators, when they are used with user-defined classes.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment