Java   View all facts   Glossary   Help
member > method
Next access unitvariable    Upaccess unit, member, specification    Previous access unitinterface   

method
(function, member function)
subjectfact 
methodis a synonym of function2001-10-19 11:36:49.0
is a synonym of member function2001-10-19 11:37:20.0
   added by: JK, source: Sun Java Tutorial, modified by: JT, 2001-10-19 11:37:21.0
added by: WH, source: Specification, 2001-10-19 11:37:21.0
added by: JK, source: On To Java, 2001-10-19 11:37:21.0
added by: JK, source: On To Java, 2001-10-19 11:37:21.0
added by: JK, source: On To Java, 2001-10-19 11:37:21.0
belongs to a class    added by: DS, 2001-10-19 11:37:21.0
can access all instance variables of all objects of its classadded by: DS, 2001-10-19 11:37:21.0
can be inherited by subclasses of its class    added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:21.0
can be accessed by other methods and variables in any class in the same package by default    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:21.0
can have an array as a parameter - see method parameter    added by: JK, source: On To Java, 2001-10-19 11:37:21.0
can use the super method to invoke a method declared in the superclassadded by: JK, source: Sun Java Tutorial, comment: p. 70 Nutshell, 2001-10-19 11:37:21.0
cannot be passed as an argument to a method or constructor    added by: DS, source: Sun Java Tutorial, comment: unlike C and C++, 2001-10-19 11:37:22.0
creates an object by instantiating a classadded by: DS, 2001-10-19 11:37:22.0
has definition A concrete implementation of an operation; a procedure in a class    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
has definition A procedural abstraction used to implement the behaviour of a class    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
has definition A function defined in a classadded by: JK, source: Sun Java Tutorial, reference: Glossary, 2001-10-19 11:37:22.0
has definition Code that specifies some of the behaviour of a class or instanceadded by: DS, reference: Source 2, 2001-10-19 11:37:22.0
does not return a value if it has a void return typeadded by: JK, 2001-10-19 11:37:22.0
has part method definitionadded by: JK, 2001-10-19 11:37:22.0
has part method signatureadded by: JK, 2001-10-19 11:37:22.0
has part a block of implementation codeadded by: WH, except: abstract method, 2001-10-19 11:37:22.0
implements added by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:22.0
is equivalent to the terms "function member" or "member function" which are used in C++    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
is equivalent to the terms "routine", "function" or "method" which are used in non object-oriented programming languages    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
is part of a class or an objectadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:22.0
is a subtopic of Methods2001-10-19 11:37:22.0
is partitioned into static method, instance method    added by: DS, 2001-10-19 11:37:22.0
is a kind of access unitadded by: DS, 2001-10-19 11:37:22.0
is a kind of memberadded by: JK, 2001-10-19 11:37:22.0
is a kind of specificationadded by: DS, 2001-10-19 11:37:22.0
may contain empty return statement if it has a void return type    added by: JK, source: On To Java, 2001-10-19 11:37:22.0
may have access modifier added by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:37:22.0
must contain return statement unless it has a void return type    added by: JK, source: On To Java, 2001-10-19 11:37:22.0
must define its parameter listadded by: Marvin, 2001-10-19 11:37:22.0
must define its return typeadded by: Marvin, 2001-10-19 11:37:22.0
overrides a method in a superclass with the same namesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
returns a value that is of the return type of the method or a subtype of that type    added by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:22.0
should be as private as possiblesource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
should have a comment at its head if the method is non-obvioussource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
should not be public except for those that will definitely need to be called from outside the package    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:22.0
should return to its caller from only one place which should be the last statement    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:37:23.0
usually hides instance variables, class variables from other objectsadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:23.0
access unithas access mode2001-10-19 11:35:59.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Kinds of method :

Next access unitvariable    Upaccess unit, member, specification    Previous access unitinterface