Return to Jeff's Main Page

CS1 at Oswego

Hypertexknowlogy

Frequently Asked Questions

 
My Intro to Object-Oriented Programming  
 
 
 
Glossary of Terms ( Cognitive and Computational )

Monday October 02 , 2000
 

Definition   A COMMAND is a program that performs an action (other than returning a value).

Definition   An OPERATOR is a program that returns a value.

Examples of these definitions include the following:  

In the context of the Circle Class....   area () is an operator;  shrink (-) is a command.  

In the context of the IO Class....   println (< int >) is a command;  read_int () is an operator.