Object oriented

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…

2 years ago

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.…

2 years ago

Method Overriding(Polymorphism)

What is Polymorphism? The term "polymorphism" refers to having multiple forms. Polymorphism is defined as the ability of a message…

2 years ago

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…

2 years ago

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…

2 years ago

Types of Inheritance in C++

There are 5 types of Inheritance in C++: Single inheritanceMultiple inheritanceHierarchical inheritanceMultilevel inheritanceHybrid inheritance Single Inheritance: A class derives from…

2 years ago

Constructors and Destructors in C++

Constructor: A constructor is a special member function of a class and shares the same name as of class, which…

2 years ago

Classes and Objects in C++

The fundamental idea that the object-oriented approach revolves around in C++ is the concept of classes and objects. It increases…

2 years ago

OOPs Concepts in C++

Object-oriented programming (OOPs) is a programming approach or pattern in which programs are structured around objects rather than functions and…

2 years ago

Serialization and Deserialization in Java

An object's state can be transformed into a byte stream through a process known as serialization. Deserialization is the opposite…

2 years ago