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
Parameterized Constructor in C++
Last Updated: 09 December 2024
In C++, parameterized constructor is a type of constructor that can accept arguments. Parameterized Constructors make it possible to pass ar
...read more
cpp-class
cpp-constructor
C++
CPP-OOPs
C++ Getters and Setters
Last Updated: 27 May 2024
In C++, getters and setters are part of data encapsulation used to protect our data, particularly when creating classes. These are public me
...read more
cpp-class
C++
C++ Programs
Picked
CPP-OOPs
CPP Examples
How to Write Getter and Setter Methods in C++?
Last Updated: 27 February 2024
In C++, classes provide a way to define custom data types that can encapsulate data and methods related to that data. Getter and setter meth
...read more
cpp-class
C++
C++ Programs
Picked
CPP-OOPs
CPP Examples
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
C++ Class Methods
Last Updated: 19 January 2023
Prerequisite: Class in C++Class is a blueprint of an object, which has data members and member functions also known as methods. A method is
...read more
cpp-class
C++
Picked
Self-Referential Classes in C++
Last Updated: 14 March 2022
A class is a building block in C++ that leads to Object-Oriented programming. It is a user-defined type that holds its own data members and
...read more
cpp-class
C++
Geeks-Premier-League-2022
Geeks Premier League
Classes vs Structure vs Union in C++
Last Updated: 19 January 2021
Class: It is a user-defined datatype enclosed with variables and functions. It is like a blueprint for an object. Class members are private
...read more
Technical Scripter
cpp-structure
cpp-class
C++
C-Structure & Union
Structure & Union
C++ Programs
Technical Scripter 2020
Difference between Single and Multiple Inheritance in C++
Last Updated: 07 August 2023
Single InheritanceSingle inheritance is one in which the derived class inherits the single base class either public, private, or protected a
...read more
cpp-class
C++
Difference Between
std::uniform_int_distribution class in C++
Last Updated: 08 May 2024
In Probability, Discrete Uniform Distribution Function refers to the distribution with constant probability for discrete values over a range
...read more
Mathematical
Randomized
cpp-class
C++ Programs
cpp-random
DSA
match_results prefix() and suffix() in C++
Last Updated: 09 August 2021
The match_results::prefix() is an inbuilt function in C++ which is used to get the string which is preceding the matched string in the input
...read more
STL
CPP-Functions
cpp-class
C++
CPP-regex
std::allocator() in C++ with Examples
Last Updated: 04 June 2022
Allocators are objects responsible for encapsulating memory management. std::allocator is used when you want to separate allocation and do c
...read more
CPP-Functions
cpp-class
C++
Difference between namespace and class
Last Updated: 09 November 2022
Classes are data types. They are an expanded concept of structures, they can contain data members, but they can also contain functions as me
...read more
cpp-namespaces
cpp-class
C++
Difference Between
C/C++ Puzzles
How to Create a Dynamic 2D Array Inside a Class in C++?
Last Updated: 23 May 2022
A dynamic array is an array that can grow, resize itself, contains a dynamic table, which is mutable in nature, or an array list is randomly
...read more
cpp-array
cpp-pointer
cpp-class
C Language
C++
Static Objects in C++
Last Updated: 14 March 2023
Prerequisite: Static Keyword in C++An object becomes static when a static keyword is used in its declaration. Static objects are initialized
...read more
cpp-class
cpp-storage-classes
cpp-constructor
C++
C++-Static Keyword
Static Keyword
Does C++ compiler create default constructor when we write our own?
Last Updated: 26 September 2024
No, the C++ compiler doesn't create a default constructor when we define any type of constructor manually in the class.ExplanationThe defaul
...read more
cpp-class
cpp-constructor
C++
CPP-OOPs
When Should We Write Our Own Copy Constructor in C++?
Last Updated: 15 July 2024
A copy constructor is a member function that initializes an object using another object of the same class. (See this article for reference).
...read more
cpp-class
cpp-constructor
C++
CPP-OOPs
First
1
2
3
4
>>
Last
First
1
2
3
4
>>
Last
First
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 !