Category: C++
-
C++Copy Constructor in C++
A copy constructor is a type of constructor that creates a copy of another object. If we want one object…
October 19, 2022
-
C++Class Members Pointers in C++
A pointer to a C++ class is created in the same way that a pointer to a structure is created,…
October 20, 2022
-
C++Inheritance in C++
Inheritance refers to a class’s ability to derive properties and characteristics from another class. One of the most important aspects…
October 21, 2022
-
C++Types of Inheritance in C++
There are 5 types of Inheritance in C++: Single inheritance Multiple inheritance Hierarchical inheritance Multilevel inheritance Hybrid inheritance Single Inheritance:…
October 23, 2022
-
C++Order of Constructor Call in C++
If we inherit a class from another class and create an object of the derived class, it is obvious that…
October 23, 2022
-
C++Upcasting in C++
Upcasting is the process of creating the derived class’s pointer or reference from the base class’s pointer or reference. It…
October 26, 2022
-
C++Method Overriding(Polymorphism)
What is Polymorphism? The term “polymorphism” refers to having multiple forms. Polymorphism is defined as the ability of a message…
October 26, 2022
-
C++Virtual Functions in C++
A virtual function is a member function declared in a base class that is re-defined (overridden) by a derived class….
October 26, 2022
-
C++Pure Virtual Functions and Abstract Classes
What are Pure Virtual Functions? A pure virtual function is a virtual function in C++ that does not require any…
October 27, 2022
-
C++Virtual Destructors in C++
What is a Virtual Destructor? Deleting a derived class object with a non-virtual destructor using a pointer of the base…
October 28, 2022
-
C++Operator Overloading in C++
What is Operator Overloading? Operator overloading is a compile-time polymorphism in which the operator is overloaded to provide the user-defined…
October 29, 2022
-
C++Examples of Operator Overloading in C++
Let’s see examples of operator overloading in C++ for various types of operators. Examples: 1) Add given timestamps by overloading…
October 30, 2022