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
DSA
22.8K+ articles
Interview Experiences
14.1K+ articles
Misc
8.8K+ articles
Arrays
6.5K+ articles
C++
4.3K+ articles
C++ Programs
2.4K+ articles
C/C++ Puzzles
187+ articles
CPP-OOPs
48+ articles
C++-Inheritance
8+ articles
C++-Class and Object
33 posts
Recent Articles
Popular Articles
How to Access Private Variable in C++?
Last Updated: 21 May 2024
In C++, Private members of a class are accessible only within the class they are declared and by friend functions, they are not accessible outside the class not even by de...
read more
cpp-class
C++
C++-Class and Object
C++ Programs
Picked
CPP Examples
How to Resolve Build Errors Due to Circular Dependency Amongst Classes?
Last Updated: 09 April 2024
In C++, circular dependencies between classes can lead to confusing build issues that are difficult to fix. In this article, we will learn how to resolve to build errors d...
read more
C++
C++-Class and Object
C++ Programs
Picked
C++ Errors
CPP Examples
How to Create a Class with Private and Public Members in C++?
Last Updated: 02 April 2024
In C++, the classes are blueprints for creating objects with specific properties and methods that provide a feature of access specifiers to the user through which they can...
read more
cpp-class
C++
C++-Class and Object
C++ Programs
Picked
CPP Examples
Serialize and Deserialize an Object in C++
Last Updated: 02 April 2024
In C++, serialization is the process of converting an object into a sequence of bytes so that it can be stored in memory or transmitted across a network and deserializatio...
read more
cpp-file-handling
C++
C++-Class and Object
C++ Programs
Picked
CPP Examples
How to Implement a Copy Constructor in a Derived Class in C++
Last Updated: 27 March 2024
In object-oriented programming, a copy constructor is a special member function that initializes a new object as a copy of an existing object. In this article, we will lea...
read more
cpp-class
C++
C++-Constructors
C++-Class and Object
C++ Programs
Picked
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
cpp-class
cpp-inheritance
C++
C++-Class and Object
C++-Inheritance
C++ Programs
Picked
CPP Examples
How to Declare a Static Member Function in a Class in C++?
Last Updated: 27 February 2024
In C++, static functions are functions that are directly associated with a class so we can access the static function directly without creating an object of the class usin...
read more
cpp-class
C++
C++-Class and Object
C++-Static Keyword
C++ Programs
Picked
CPP-OOPs
CPP Examples
How to Define a Static Data Member of Type const std::string?
Last Updated: 27 February 2024
In C++, static data members are members that exist independently of any object of the class. A static data member is shared by all objects of the class, meaning there is o...
read more
cpp-data-types
cpp-string
C++
C++-Class and Object
C++ Programs
Picked
CPP-OOPs
CPP Examples
The Rule of Five in C++
Last Updated: 17 January 2024
The "Rule of Five" is a guideline for efficient and bug-free programming in C++. The Rule of Five states that,If any of the below functions is defined for a class, then it...
read more
cpp-constructor
C++
C++-Constructors
C++-Class and Object
C++-Destructors
Geeks Premier League
Printing the Address of an Object of Class in C++
Last Updated: 13 December 2022
Prerequisite: Classes and Objects in C++The location of an object in the memory is called its address. Addressing is a necessary part of C++, it enables us to use any elem...
read more
Technical Scripter
C++
C++-Class and Object
Picked
Technical Scripter 2022
Implementation of Singleton Class in C++
Last Updated: 14 February 2025
A singleton class is a special type of class in object-oriented programming which can have only one object or instance at a time. In other words, we can instantiate only o...
read more
C++
C++-Class and Object
Picked
Object Composition-Delegation in C++ with Examples
Last Updated: 21 January 2022
Object CompositionsAn object is a basic unit of Object-Oriented Programming and represents real-life entities. Complex objects are objects that are built from smaller or a...
read more
C++
C++-Class and Object
Different ways to instantiate an object in C++ with Examples
Last Updated: 27 December 2021
prerequisite: C++ Classes and ObjectsDifferent Ways to Instantiate an ObjectIn C++, there are different ways to instantiate an objects and one of the method is using Const...
read more
C++
C++-Class and Object
Array of Objects in C++ with Examples
Last Updated: 01 July 2024
An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly us...
read more
C++
Arrays
C++-Class and Object
Calling a non-member function inside a class in C++
Last Updated: 23 August 2022
Member Function: It is a function that can be declared as members of a class. It is usually declared inside the class definition and works on data members of the same clas...
read more
CPP-Functions
C++
C++-Class and Object
C++ Programs
C/C++ Puzzles
1
2
3
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 !