Constant Member Functions Member functions in a class can be declared as constant if that member...
Category - C++
What are constant member functions and constant parameters in C++
Member functions in a class can be declared as constant if that member function has no necessity of...
How to avoid overhead of the function using inline C++ functions
Making a function inline avoids the overhead of a function call. By default functions defined...
What is Object Slicing in C++
Object Slicing In inheritance we can assign a derived class object to a base class object. But, a...
What are types of constructors in C++
Types of Constructors A constructor can be classified into following types: Dummy...
How do you implement operator overloading in C++ Programming
Operator overloading can be implemented in two ways. They are: Using a member functionUsing a...
Hostel Management System Source Code in C++
Hostel management systems are software solutions used within hostels, in order to carry out key...
C++ vs Java? which programming language supports better inheritance?
The purpose and the application of the inheritance is similar in both java and c++. Inheritance is...
How to accept objects as function arguments in C++ Programming
Like variables, objects can also be passed using pass-by-value, pass-by-reference, and pass-by...
Why do we need Synchronization in real life Applications
When two or more threads are accessing the same resource like a variable or a data structure, it...
What is the difference between stack and queue in C++
Stack A Stack data structure works on Last In First Out principle, also abbreviated as LIFO. A...
How to Throw Exception of the Class Type in C++
Instead of throwing exceptions of pre-defined types like int, float, char, etc., we can create...
How to print a man in C++ programming
Today in this tutorial I am going to show you how to print a figure of a man in c++. The main theme...