Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C Language
1.8K+ articles
Computer Science Fundamentals
1.5K+ articles
CPP-Functions
615+ articles
CS – Placements
166+ articles
cpp-class
57+ articles
CPP-OOPs
48+ articles
cpp-virtual
17+ articles
cpp-inheritance
28 posts
Recent Articles
Popular Articles
Publicly inherit a base class but making some of public method as private
Last Updated: 25 February 2018
There are certain situation when we want to make some of the public base class functions as private in the derived class. Suppose both base and child class has getter and ...
read more
C/C++ Puzzles
C++
cpp-inheritance
C++ Interview Questions on Virtual Function and Abstract Class
Last Updated: 01 November 2024
Diving into the depths of C++ programming requires a solid grasp of some of its most important topics, such as virtual functions and abstract classes. These concepts are n...
read more
CS – Placements
C++
cpp-virtual
cpp-inheritance
Interview-Questions
Interview Questions
Object-Oriented Design (OOD) - System Design
Last Updated: 03 January 2025
A crucial method for system design is object-oriented design (OOD), which places an intense focus on scalability, modularity, and reusability. OOD resembles real-world sys...
read more
Misc
Design Pattern
Picked
System Design
cpp-inheritance
Java-Object Oriented
C++-Inheritance
Inheritance
Difference between Base class and Derived class in C++
Last Updated: 22 March 2023
Base Class: A base class is a class in Object-Oriented Programming language, from which other classes are derived. The class which inherits the base class has all members ...
read more
Difference Between
C++
cpp-inheritance
C++-Inheritance
Inheritance
Constructor in Multilevel Inheritance in C++
Last Updated: 07 March 2022
Constructor is a class member function with the same name as the class. The main job of the constructor is to allocate memory for class objects. Constructor is automatical...
read more
C++
Geeks Premier League
Geeks-Premier-League-2022
cpp-constructor
cpp-inheritance
Constructor in Multiple Inheritance in C++
Last Updated: 23 July 2022
Constructor is a class member function with the same name as the class. The main job of the constructor is to allocate memory for class objects. Constructor is automatical...
read more
C++
Geeks Premier League
Geeks-Premier-League-2022
cpp-constructor
cpp-inheritance
Inheritance Ambiguity in C++
Last Updated: 21 December 2022
Pre-requisites: Inheritance in C++, Multiple Inheritance in C++In multiple inheritances, when one class is derived from two or more base classes then there may be a possib...
read more
C++
Geeks Premier League
Geeks-Premier-League-2022
cpp-inheritance
C++ Program to Create an Interface
Last Updated: 05 November 2024
Interfaces are a feature of Java that allows us to define an abstract type that defines the behaviour of a class. In C++, there is no concept of interfaces, but we can cre...
read more
C++ Programs
C++
Picked
cpp-virtual
cpp-inheritance
C++ Misc Programs
CPP-OOPs
Function Overriding in C++
Last Updated: 20 May 2025
A function is a block of statements that together performs a specific task by taking some input and producing a particular output. Function overriding in C++ is termed as ...
read more
C++
cpp-inheritance
CPP-OOPs
C++ Multilevel Inheritance
Last Updated: 26 May 2025
Multilevel Inheritance is a type of inheritance in C++ where one class inherits another class, which in turn is derived from another class. It is known as multi-level inhe...
read more
C++
Picked
cpp-inheritance
C++ Hierarchical Inheritance
Last Updated: 27 October 2022
Inheritance is a feature of Object-Oriented-programming in which a derived class (child class) inherits the property (data member and member functions) of the Base class (...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
cpp-inheritance
C++ Inheritance Access
Last Updated: 11 March 2025
Prerequisites:Class-Object in C++Inheritance in C++Before learning about Inheritance Access we need to know about access specifiers. There are three Access specifiers in C...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
cpp-inheritance
When to Use Virtual Destructors in C++?
Last Updated: 25 January 2024
In C++, destructors are special members of a class that frees memory occupied by an object when it goes out of scope. A virtual destructor is a special form of destructor ...
read more
C++ Programs
C++
Picked
cpp-virtual
cpp-inheritance
cpp-destructor
CPP-OOPs
CPP Examples
How to Create a Derived Class from a Base Class in C++?
Last Updated: 18 March 2024
In C++, one of the fundamental concepts of Object Oriented Programming (OOPS) is inheritance, allowing users to create new classes based on existing classes. The class tha...
read more
C++ Programs
C++
Picked
cpp-class
cpp-inheritance
C++-Class and Object
C++-Inheritance
CPP Examples
How to Implement Interfaces Using Abstract Class in C++
Last Updated: 27 June 2024
C++ doesn't have built-in functionality of interfaces like other programming languages such as Java. However, interfaces can be implemented in C++ using the abstract class...
read more
C++ Programs
C++
Picked
cpp-virtual
cpp-inheritance
C++-Inheritance
C++-Virtual Functions
Abstract Class and Interface
CPP Examples
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !