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++”
Category: C++
Multithreading
Let’s first understand few related terminologies before understanding multithreading. Program Program or computer program can be viewed as a set of instructions. We generally write programs in high level languages like C or C++. The computer processors can not execute these programs directly. We compile and link them into a binary equivalent that the processors … Continue reading “Multithreading”
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++”