- Object is an instance of a class.
- Using Object we can access non static member variables and member methods.
- If we use Objects for accessing static members, a same memory is shared for all Objects.
- So use class name for accessing static members instead of Objects.
No comments:
Post a Comment