Operator Overloading in C++

In C++, we can make the operators work for user defined data types. The meaning of the operator will depend on the implementation. This feature is known as operator overloading. One operator can work in some way on operands of standard data types. And the same operator can work in different ways on operands of … Continue reading “Operator Overloading in C++”

Function Overloading in C++

Function overloading is a feature of having multiple functions with same name but different input parameters. The input parameters of the overloaded functions should be different in some way. Either the data types of the input parameters could be different or the number of input parameters could be different. This is one of the important … Continue reading “Function Overloading in C++”

C++ Object Oriented Programming

C++ is a high-level, general purpose object oriented programming language. It was created by Bjarne Stroustrup, a Danish computer scientist, as an extension of C programming language in early 80’s to add support of the Object Oriented Programming (OOP) features. Over time it has been extended to support wide range of programming features and abilities. … Continue reading “C++ Object Oriented Programming”

Encapsulation in C++

One of the main objectives of Object Oriented Programming is to keep related things together. Encapsulation in C++ is about to bind the data and the functions that operate on them into a single entity called class. In traditional procedural programming like C, the data and functions are sort of independent. Code manageability can increase … Continue reading “Encapsulation in C++”

Abstraction in C++

Abstraction is a design concept of hiding data or implementation wherever possible and expose the essential parts only. Data hiding helps to prevent potential misuse and accidental change of data. Implementation hiding helps refactoring code by doing localized changes. In C++, the data and implementations are kept hidden as much as possible within the classes. … Continue reading “Abstraction in C++”

0
0
0
0
0
0