Accessing members and methods

In static method, the method can only access only static data members and static methods of another class or same class but cannot access non-static methods and variables. Also a static method can rewrite the values of any static data member. In non-static method, the method can access static data members and static methods as well as non-static members and method of another class or same class, also can change the values of any static data member.