- C++

Classes and Objects

Classes and Objects Classes and Objects: Class is a user defined data type just like Structures, but with the difference. It also has 3 sections namely 1.       private, 2.       public and 3.       protected. Using these, access to member variable of a class can be strictly controlled. public  : variable and…

Read More

- C++

Inline function in c++

INLINE FUNCTION INLINE FUNCTION: The inline function is the concept used commonly with classes. When the function is inline, the compiler places a copy of the code of that function at each point. Conditions for the Inline function:          Inline functions should not contain any loops, recursion. –            The inline…

Read More