Java View all facts Glossary Help |
member > instance member |
instance member comparison table |
Subject | destroy in | declare | is a subtopic of | access | declare by | create | access by | refer to | has part | refer you | define by | return to | contain | have purpose | is a synonym of | pass as | have example | make | implement | have scope | have access to | be part of | operate on | belong to | is a kind of | initialize by | define | have access modifier | maintain | be accessible to | hide | declare anywhere in | use | override | be a member of | have | have part | return | has definition | be | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
instance method | public, protected or private | Methods | all instance variables of all objects of its class | an object by instantiating a class | other methods and variables in any class in the same package by default | the object itself using the 'this' keyword | a block of implementation code | its caller from only one place which should be the last statement | return statement unless it has a void return type | an argument to a method or constructor | public float credit(float amountToCredit) { | the behaviour of the objects in the class | every class variable of its class | a class | the current object's instance variables | a class | method | its return type | instance variables, class variables from other objects | the super method to invoke a method declared in the superclass | a method in a superclass with the same name | a comment at its head if the method is non-obvious | method signature | a value that is of the return type of the method or a subtype of that type | Any method that is invoked with respect to an instance of a class | public except for those that will definitely need to be called from outside the package | |||||||||||||||
instance variable | the block where it is declared | Members | giving the data type followed by the name of the variable | all methods of its class | an object or a primitive | value | join the name of the variable with a dot to the instance variable name. Example: variableName.instanceVariableName | an instance variable definition | only values that are of the same type as the variable or a subtype of the variable's type | to refer to an object or a class or a primitive datum | object variable | private to prevent direct access to instance variable - accessor methods should be used instead to protect data abstraction | an attribute or an association | an object | member variable | an assignment statement | part of its object's state | the code in its class | a class outside of a method | a class or an object | comment if it is non-obvious | Any item of data that is associated with a particular object. | as private as reasonably possible - almost never make an instance variable public |
Next member: member variable Up: member Previous member: inner class