Thursday, October 23, 2008

Static Variables and Methods (Objective 1.4)

They are not tied to any particular instance of a class.
No classes instances are needed in order to use static members of the class.
There is only one copy of a static variable / class and all instances share it.
static methods do not have direct access to non-static members.

No comments: