C++ Programming Language

Class in C++

Class is a collection of related data members and member functions combine into a single unit. A class is declared with the keyword 'class'. A class is a user-defined data type. The variables enclosed in class are called data members and the function enclosed in class are called member functions.


Constructors in C++

It is a member function having the same name as it’s class and which is used to initialize the objects of that class type with a legal initial value. The compiler call's the constructor when an object is created. We can't define a constructor in the private section, we can define only it in the public section.


Destructors in c++

Destructors a special member function, that takes the same name of the class name followed by the tilde(~). Destructors are the inverse of constructors. It is automatically called when objects are destroyed. It has the same name as that of the class followed by ~.It doesn't return any value.


Object Oriented Programming

C++ programming language fully supports object-oriented concepts. The main characteristics of Object-Oriented Programming languages are Data abstraction, Data Encapsulation, Inheritance, and polymorphism.


Function Overloading In C++

Function overloading is the process of defining functions that two or more functions can have the same name, but with different parameters. The secret to overloading is that each redefinition of the function must use. They are different types of arguments and the different number of parameters.


Inheritance in C++

Inheritance is one of the important features of the oop(object-oriented programming). Inheritance is the process by which objects of one class acquire the properties of objects of another class in the hierarchy.


Overloading in C++

Overloading in C++ allows specifying more than one definition for a function name or an operator in the same scope is called function overloading and operator overloading respectively. An overloaded function can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by the types and/or the number of arguments in the argument list.