Rabecca Fatima

const keyword in C++

Const keyword define constant values that cannot change while the program is running. A const variable must be assigned a…

3 years ago

static keyword in C++

When the static keyword is used, variable or data members or functions can no longer be changed. It is allocated…

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

3 years ago

Function Overloading in C++

What is Function Overloading & why is it used? Function overloading is an object-oriented programming feature in which two or…

3 years ago

Inline Function in C++

What is the Inline function & why is it used? When the program executes the function call instruction, the CPU…

3 years ago

Types of Class Member Functions in C++

Now, let's look at some of the special member functions that can be defined in C++ classes. The following are…

3 years ago

Member Functions of Class in C++

A member function is a function that is declared as a class member. It is declared within the class in…

3 years ago

Accessing data members

Members of a class can be accessed directly within the class by using their names. Accessing a member outside the…

3 years ago

Access Modifiers in C++

Access modifiers, also known as Access specifiers, are used to implement Data Hiding, an essential aspect of Object-Oriented Programming. Data…

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

3 years ago