C++ Recursion

Recursion is the process of defining a problem in terms of a simpler version of itself. Recursion comes directly from Mathematics, where there are many examples of expressions written in terms of themselves.

Continue reading


C++ Class and Object

A class is a template for an object, and an object is an instance of a class. Once a class is defined, this new type can be used to create objects of that type. The class is at the core of C++.

Continue reading


C++ Constructors and Destructors

C++ allows objects to initialize themselves when they are created. This automatic initialization is performed through the use of a constructor. This fulfills the requirement for initialization of object upon creation.

Continue reading


C++ Arrays

An array is a group of like-typed variables that are referred to by a common name. Array of any type can be created and may have one or more dimensions. Arrays offer a convenient means of grouping related information.

Continue reading


C++ Operator Overloading

Operator Overloading is generalization of function overloading. It increases the readability of our code. Further, it is straightforward and natural way to extend C++.

Continue reading


C++ Data Conversion

Data conversion in C++ includes conversions between basic types and user-defined types, and conversions between different user-defined types.

Continue reading


C++ Inheritance

When a class is derived from a base class, the derived class inherits all the characteristics of base class and can add new features as refinements and improvements. This is called inheritance.

Continue reading


C++ Overriding

In a derived class, the data and function members can have the same name as of the base class. Process of creating members in the derived class with same name as that of the visible members of the base class is called overriding.

Continue reading