Memory Allocation for Object

Generally in C language, when we create a normal variable, a space is allocated to the variable to store value. The memory space is common to save and change. Only one copy of the variable is available in memory and the same copy is shared between all the functions in a program. But in case of Object in C++ language, scenario is some thing different then the normal variable declaration. The member functions are created and placed in the memory space only once when they are defined as part of…

Read More