Static member

Static data member of a class has only one copy across all its objects. To understand how static keyword works for class member…