static int a, b; // Static data member declaration. Static data member should be declared inside class and defined outside the class sam.getdata(); // Calling static function by object name Sample :: ...
-If a member in inheritance hierarchy has virtual function then, the hierarchy is of Polymorphic type -If a function is virtual in a class and if this class has been derived, then this function is a ...