Objects are typically divided into classes which represent a set of objects specified with a common set of instructions but with different values for information
|
One builds up a set of instructions which perform a useful function
-
Convert HTML page from English to Chinese or from HTML to Microsoft Word format
-
Convert Date/Time from 12 to 24 hour format
-
Calculate trajectory of a baseball
|
These sets of instructions are called functions, methods or subroutines
|
Sets of functions/subroutines/methods(with objects) are called libraries
|
In object-oriented languages, methods are associated with objects and are used to manipulate and access information in an object.
|