![]() |
subject > programming language construct > procedure > method > instance method |
![]() ![]() | ||||
instance method | ||||
subject | fact |
instance method | has definition A method that executes in the context of a particular object; it has access to the instance variables of the given object, and can refer to the object itself using the 'this' keyword (in Java and C++) | ![]() |
is a subtopic of 2.4 - Methods, Operations and Polymorphism | ![]() | |
is a kind of 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 instance method :