Java   View all facts   Glossary   Help
member > instance member
Next membermember variable    Upmember    Previous memberinner class   

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 privateMethodsall instance variables of all objects of its class an object by instantiating a classother methods and variables in any class in the same package by defaultthe object itself using the 'this' keyworda block of implementation code  its caller from only one place which should be the last statementreturn statement unless it has a void return type  an argument to a method or constructor
public float credit(float amountToCredit) {
balance = balance + amountToCredit;
return balance;
}
 the behaviour of the objects in the class every class variable of its classa classthe current object's instance variablesa classmethod its return type  instance variables, class variables from other objects the super method to invoke a method declared in the superclassa method in a superclass with the same name a comment at its head if the method is non-obviousmethod signaturea value that is of the return type of the method or a subtype of that typeAny method that is invoked with respect to an instance of a classpublic except for those that will definitely need to be called from outside the package
instance variablethe block where it is declared Members giving the data type followed by the name of the variable all methods of its classan object or a primitive valuejoin 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 typeto refer to an object or a class or a primitive datumobject variable  private to prevent direct access to instance variable - accessor methods should be used instead to protect data abstractionan attribute or an association  an object  member variablean assignment statement part of its object's statethe code in its class a class outside of a method  a class or an objectcomment 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 membermember variable    Upmember    Previous memberinner class