Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > procedure > method > class method
Next methodhook method    Upmethod    Previous methodabstract method   

class method comparison table
Subject call by lack have have advantage be return to is a kind of is a subtopic of overuse implement override hide have purpose perform access by provide mark as have high cohesion
Java class methodusing the name of the class, followed by a dot, followed by the name of the method (the name of the class can be omitted when calling a class method in the current class)side effects if it does not modify any data, and does not leave behind any information, other than its result, that would have an effect on other computations'this' value when it is executingwhen 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 computespublic except for those that will definitely need to be called from outside the packageits caller from only one place which should be the last statementJava methodThe Basics of Java  a method in a superclass with the same namethe details of proceduresimplementing functions such as initializing a class, or operating on the complete set of instances of a classa special-purpose function such as the user interface for a particular systemother methods and variables in any class in the same package by defaultprocedural abstractionstaticif related aspects of a system are kept together in this module, and unrelated aspects are kept out

Next methodhook method    Upmethod    Previous methodabstract method