Wiki

Changes between Version 1 and Version 2 of Properties

Show
Ignore:
Timestamp:
11/03/12 20:53:46 (12 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Properties

    v1 v2  
    22 
    33== Introduction == 
     4 
     5Properties provide a way to get and set the values that characterize an object. A business application could have a Customer class with properties .name, .address and .id. A video game could have a GameObject class with properties .position, .velocity and .health. 
     6 
     7== Syntax == 
    48 
    59to-do 
     
    711== Compared to Methods == 
    812 
    9  * Methods cannot take parameters. 
     13 * Methods can take parameters. 
    1014 * In practice, methods are not systematically enumerated and invoked. 
    1115 * Methods may perform substantial calculations and/or I/O.