Content deleted Content added
TakuyaMurata (talk | contribs) add accessor method |
TakuyaMurata (talk | contribs) m An accessor method that changes the state of an object is sometimes especially called '''mutator''' or '''update method'''. Objects with that method is considered mutable object. |
||
Line 7:
An '''abstract method''' is a [[method]] which has no [[implementation]]. It is used to make a place-holder to be overriden later.
An '''accessor method''' is a kind of method that is usually small, simple and provides the way to bypass access control. Although it introduces new dependency, use of the methods are preferable because they provide a certain layer. An accessor method that changes the state of an object is sometimes especially called '''mutator''' or '''update method'''. Objects with that method is considered [[immutable object|mutable object]].
|