Encapsulation, Data Hiding and Static Data Members
Encapsulation, Data Hiding and Static Data Members
In figure,
Variable1,
Variable2 etc
are normal
variables
Static Member Functions
can be called even if no objects of the
class exist and thestaticfunctions are
accessed using only the class name
and the scope resolution operator::.
can only access static data member,
other static member functions and any
other functions from outside the class.