coderz.py

Keep Coding Keep Cheering!

Function Overloading in C++

What is Function Overloading & why is it used? Function overloading is an object-oriented programming feature in which two or more functions have the same name but different parameters.The function overloading feature in C++ is used to improve code readability. It is used to save the programmer from having to remember multiple function names. Function […]

October 12, 2022 | C++ | No comments

Inline Function in C++

What is the Inline function & why is it used? When the program executes the function call instruction, the CPU saves the memory address of the instruction that follows the function call, copies the function’s arguments to the stack, and transfers control to the specified function. This process can occasionally result in overhead in function […]

October 11, 2022 | C++ | No comments

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 the various types of Member functions: Simple functions Static functions Const functions Inline functions Friend functions Simple Member functions: These are the basic member function, which doesn’t have any special keyword like static etc. as […]

October 9, 2022 | C++ | No comments

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 any of the visibility modes, i.e. public, private, or protected, and it has access to all the class’s data members. If the member function is defined within the class definition, it can be defined directly […]

October 9, 2022 | C++ | No comments

Advertisement