Function overloading in c++

Function overloading in C++ Function overloading in C++ allows you to specify more than one definition for a function name in the same scope,. An overloaded declaration is a declaration that had been declared with the same name as a previously declared in the same...

Polymorphism in c++

Polymorphism in C++ The word polymorphism in c++ means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance. C++ polymorphism means that a call to a member function will cause a different function...

String Handling in c++

String Handling in C++ String Handling in c++ provides two types of string representations: The C-style character string. The string class type introduced with Standard C++. The C-Style Character String: The C-style character string originated within the C language...

Function as arguments

Function as arguments A function is a group of statements that forms together to perform a task. Every C++ program has at least one function, which is main(), and all the other most trivial programs can define additional functions. A function declaration tells the...

Storage classes in c++

Storage classes in C++ Storage classes in c++ is explained with different class variables. In C++ programming language we have multiple files. In those files we may have normal variables, array, functions, structures, unions, classes etc. So, variables and objects...

Role of this pointer

Role of this pointer The role of ‘this’ keyword is to represent an object that invokes the member function. It points to the object from where ‘this’ function was called. It is automatically passed to a member function when it is called. e.g....