![]() |
subject > programming language construct > procedure > method > class method |
![]() ![]() | ||||
class method (static method) | ||||
subject | fact |
class method | has definition A method that, unlike an instance method, does not execute in the context of a particular instance of a class | ![]() |
has purpose implementing functions such as initializing a class, or operating on the complete set of instances of a class | ![]() | |
is a subtopic of The Basics of Java | ![]() | |
is a kind of method | ![]() | |
should not be overused | ![]() | |
is a synonym of static method | ![]() | |
method | is equivalent to the terms "function member" or "member function" which are used in C++ | ![]() |
is equivalent to the terms "routine", "function" or "procedure" which are used in non object oriented languages | ![]() | |
should have a comment at its head if the method is non-obvious | ![]() | |
procedural abstraction | has advantage when using a certain procedure, a programmer does not need to worry about all the details of how it performs its computations; he or she only needs to know how to call it and what it computes | ![]() |
hides the details of procedures | ![]() | |
procedure | provides procedural abstraction | ![]() |
Kinds of class method :