ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Virtual destructor and Pure virtual destructor in C++ Need for virtual destructor. When you delete a derived class object by using a base class pointer, the destructor call will be an undefined…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Object Slicing in C++ In this tutorial we shall see what is object slicing in C++ 1. Object Slicing occurs when a derived class object is assigned to the base class…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Virtual Base Class in C++ In this chapter we shall see what is virtual base class and why we need virtual base class? We are aware of diamond problem in C++…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Pure Virtual Functions and Abstract classes in C++ In previous chapter we saw what is a virtual function. In this chapter we shall see what is a pure virtual function and what is an abstract…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Dynamic or Runtime Polymorphism or Virtual Functions in C++ In this tutorial we shall learn about below topics 1. Need for virtual function 2. Virtual function example 3. Rules for a function to be…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Introduction to Polymorphism in C++ Poly means many, morphism means forms. Polymorphism in C++means one function behaving differently under different situations. 1. Compile time…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Virtual Base Class and Virtual Inheritance in C++ In this chapter we shall learn about below topics: 1. What is the need of Virtual Base class? 2. How can we solve Diamond Problem with help of…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: C++ Types of inheritance: Below are different types of inheritance: 1. Single Inheritance 2. Multiple Inheritance 3. Multilevel Inheritance 4. Hierarchical Inheritance…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: C++ Inheritance 1. Introduction 2. Deriving by different access specifiers: 3. C++ Base class Pointer and Derived class pointer. 4. Virtual Base Class 5.…
ProDeveloperTutorialonJanuary 30, 2025 Cpp Tutorial: Copy Assignment operator in C++ In this chapter we shall learn about below topics: 1. Introduction 2. Syntax: 3. Need for user defined assignment operator. 4. User defined…