Encapsulation in C++ programming language In this tutorial, we will discuss the OOP concept of Encapsulation in C++ programming language Encapsulation is the process to enclose data members and methods in a single unit for security purposes. This is also known as data abstraction. This is possible in Oop languages like C++ and Java. That…
Category: C++
Multiple inheritance in C++ language
Multiple inheritances in C++ language In this tutorial, we will discuss the OOP concept of multiple inheritances in C++ language. Inheritance is the process of inheriting data members and methods of one class by another class. When a class is derived from two or more base class, it is called multiple inheritance. Multiple inheritance is…
Hybrid inheritance in C++ language
Hybrid inheritance in C++ language In this tutorial, we will discuss the OOP concept of Hybrid inheritance in C++ language Hybrid inheritance is a Oop concept of inheritance which one or more type of inheritance are combined together and use. it is a combination of Single level inheritance, Multilevel inheritance, and multiple inheritance Java not supported…
Hierarchical inheritance in C++ language
Hierarchical inheritance in C++ In this tutorial, we will discuss the OOP concept of Hierarchical inheritance in C++ language. Heirarchical inheritance is multiple classes inherited from a single class. There is one parent (super) class and many children(sub) classes. Hierarchical inheritance is supported in C++. In the example below, class B, class C and class…
Multi-level inheritance in C++ language
Multi-level inheritance in C++ language In this tutorial, we will discuss an Oop concept of the multi-level inheritance in C++ language. Already, we’ve looked at multilevel inheritance in inheritance in C++. Multilevel inheritance is a type of concept in C++ inheritance. A base class is inherited by an intermediate class and derived class is inherited…
Single Level inheritance in C++ language
Single Level inheritance in C++ language In this tutorial, we will discuss the OOP concept of single-level inheritance in C++ language. Single level inheritance is easy to understand as it is the most simple process compared to all other inheritances. It is when a class extends only to another class (Single child is derived from…
Inheritance in C++ programming language
Inheritance in C++ programming language In this tutorial, we will discuss the OOP concept of Inheritance in C++ programming language. Inheritance is one of the Oop concepts in object-oriented programs such as C++, java. It is where one object acquires all the properties of (data members and methods) it’s the parent or base class. It…
Switch case statement in C++ language
Switch case statement in C++ language In this tutorial, we will discuss the switch case statement in C++ language. The C++ switch-case statement executes one statement using multiple conditions. However, this statement checks a variable for equality against list of values. Switch statements Essential points about this statements The switch statement is one of the…
Cpp programming Pointer to pointer
Cpp programming Pointer to pointer In this tutorial, we will discuss the concept of Cpp programming Pointer to pointer Pointer is a special feature of C++. To understand pointer, you should know how data is saved in memory of the location. Normally, pointer is a special type of variable which stores the memory address of…
Pointer and one dimensional array in C++
Pointer and one dimensional array in C++ In this tutorial, we will try to understand Pointer and one dimensional array in C++. First, we will look at array. What is the array? Array is a data type in many programming languages and array is one of structured data types. Array contains multiple elements. Elements are…