1. Computing & Technology

Discuss in my forum

Method

By , About.com Guide

Definition:

Method: A subroutine or function associated with a class or object. Methods possess all of the properties of functions (parameters, return values) but are implemented in a different way. Ruby follows the "message passing" paradigm as opposed to the "function call" paradigm used by languages such as C++ and Java. In Ruby, methods may also exist outside of any class (be "naked"). Naked methods are considered public methods of the "main" object.

Also Known As: Function, member function

©2012 About.com. All rights reserved.

A part of The New York Times Company.