A method that is associated with a class rather than an object. Class methods can be invoked using a classname.methodname notation (e.g. Assert.assertEquals(message, expected, actual);) and do not require an instance of the class to be invoked. Class methods cannot access instance methods or instance variables of objects; that is, they do not have access to self or this. In Java, a class method is called a static method. Other languages may use different names and/or keywords.
Copyright © 2003-2008 Gerard Meszaros all rights reserved