Skip to content

Guidelines

davpaez edited this page Jul 16, 2015 · 1 revision

Types of methods

  1. Constructor method
  2. Accessor method
  3. Mutator method
  4. Informative method

A constructor method intializes the class.

An accessor method returns attributes of the object without having to operate on them or modify them in any way.

A mutator method modifies the state of the object and may or may not return data.

An informative method returns information about the object that was not readily available, therefore it had to make some processing. These methods do not modify the state of the object.

Getting started

Examples

  • Design

Development

Clone this wiki locally