Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Difference Between
4.2k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
CPP-OOPs
47 articles
CPP-regex
39 articles
cpp-constructor
37 articles
C++-Class and Object
33 articles
cpp-class
57 posts
Popular Articles
Recent Articles
std::mt19937 Class in C++
Last Updated: 30 March 2021
std::mt19937(since C++11) class is a very efficient pseudo-random number generator and is defined in a random header file. It produces 32-bi
...read more
cpp-class
C++
C++ Programs
Shallow Copy and Deep Copy in C++
Last Updated: 11 October 2024
In general, creating a copy of an object means to create an exact replica of the object having the same literal value, data type, and resour
...read more
cpp-class
cpp-constructor
Programming Language
C++
Constructors
Difference Between
C++ Programs
CPP-OOPs
Move Constructors in C++
Last Updated: 08 October 2024
A move constructor is a special type of constructor in C++ that is used to create a new object from the already existing object of the same
...read more
cpp-class
cpp-constructor
C++
C++-Constructors
Constructors
school-programming
C++ Programs
CPP-OOPs
Similar Topics
Difference Between
4.2k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
CPP-OOPs
47+ articles
CPP-regex
39+ articles
cpp-constructor
37+ articles
C++-Class and Object
33+ articles
Difference between Inheritance and Polymorphism
Last Updated: 18 March 2024
Inheritance is one in which a new class is created that inherits the properties of the already exist class. It supports the concept of code
...read more
cpp-class
C++
Difference Between
Difference between Abstraction and Encapsulation in C++
Last Updated: 06 October 2021
Abstraction:In OOPs, Abstraction is the method of getting information where the information needed will be taken in such a simplest way that
...read more
cpp-class
C++
Difference Between
hash Function Class in C++ STL
Last Updated: 03 December 2024
In C++, the hash class is default constructible function class (functor) that provides the default hash function used by STL. It is used to
...read more
STL
cpp-class
Programming Language
C++
override identifier in C++
Last Updated: 27 November 2024
Function overriding is a redefinition of the base class function in its derived class with the same signature i.e. return type and parameter
...read more
cpp-class
cpp-virtual
cpp-inheritance
C++
CPP-OOPs
Read/Write Class Objects from/to File in C++
Last Updated: 24 January 2023
Given a file "Input.txt" in which every line has values same as instance variables of a class.Read the values into the class's object and do
...read more
cpp-input-output
cpp-class
C++
Object Oriented Programming in C++
Last Updated: 11 March 2025
Object Oriented Programming - As the name suggests uses objects in programming. Object-oriented programming aims to implement real-world ent
...read more
CPP-Basics
cpp-class
cpp-inheritance
C++
Copy Constructor in C++
Last Updated: 11 January 2025
A copy constructor is a type of constructor that creates an object using another object of the same class. The process of initializing membe
...read more
cpp-class
cpp-constructor
C++
CPP-OOPs
Constructors in C++
Last Updated: 26 February 2025
In C++, constructor is a special method that is invoked automatically at the time an object of a class is created. It is used to initialize
...read more
cpp-class
cpp-constructor
C++
School Programming
CPP-OOPs
Object Slicing in C++
Last Updated: 02 April 2025
When a derived class object is assigned to a base class object in C++, the derived class object's extra attributes are sliced off (not consi
...read more
cpp-class
C Language
C++
Can We Access Private Data Members of a Class without using a Member or a Friend Function in C++?
Last Updated: 21 June 2022
The idea of Encapsulation is to bundle data and methods (that work on the data) together and restrict access of private data members outside
...read more
cpp-class
C Language
C++
cpp-friend
C++ Static Data Members
Last Updated: 11 October 2024
Static data members are class members that are declared using static keywords. A static member has certain special characteristics which are
...read more
cpp-class
C++
Static Keyword
CPP-OOPs
Difference Between Structure and Class in C++
Last Updated: 11 January 2025
In C++, a structure works the same way as a class, except for just two small differences. The most important of them is hiding implementatio
...read more
cpp-class
C++
Difference Between
cpp-struct
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
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 !