Class is not allocated any memory. This is partially true. The functions in a class are allocated...
Category - C++
How to create function templates in C++ Programming
A function template is a function which contains generic code to operate on different types of data...
How to Create virtual constructors and Destructors in C++
C++ allows programmers to create virtual destructors. But, it doesn’t allow virtual constructors to...
How to catch every exception in a C++ program
While writing programs if the programmer doesn’t know what kind of exception the program might...
What are the Advantages and Disadvantages of Inheritance
Advantages of inheritance are as follows: Inheritance promotes reusability. When a class inherits...
How to access the address of a variable in C++ programming
The actual location of a variable in memory is system dependent. A programmer cannot know the...
How data abstraction is done in C++ Programming
A class which contains at least one pure virtual functions is called an abstract class. Since...
How to prevent modification of objects in C++ using volatile
An object which can be modified by some unknown force (like hardware io) other than the programs...
How to ReThrow an Exception in C++ Programming
In C++ if a functions or a nested try-blocks does not want to handle an exceptions, it can rethrow...
What is the usage of class Template in Generic C++ Programming
Using templates programmers can create abstract class that define the behavior of the classes...
What is the difference between friend function and friend class in C++
Friend Functions A friend function is a non-member function which can access the private and...
How to create priority Scheduling Algorithm in C++ and C
Today in this article I am going to show you how to create priorities in c++ and even c because...
Best Practices for security in C++
This article contains information about security tools and practices. Using them does not make...