Next: The String Class
Up: Even More on Methods
Previous: Constructors
Non-static methods (sometimes called instance methods):
- Operate on data stored in objects or static variables
- Can call static or non-static methods
- Require the instantiation of an object to use
- Called by the syntax ObjectName.MethodName
Static Methods
- Operate on data stored in static variables only
- Can call only static methods
- Do not require instantiation of object to use
- Called by the syntax ClassName.MethodName
Chris Trendall
Copyright ©Chris Trendall, 2001. All rights reserved.
2001-12-09