next up previous contents
Next: Box: Processors Then and Up: Computers, Objects, and Java Previous: What Is Object-Oriented Programming?

What Is a Computer?

A computer is a machine that performs calculations and processes information. A computer works under the control of a computer program , a set of instructions that tell a computer what to do. Hardware  refers to the electronic and mechanical components of a computer. Software  refers to the programs that control the hardware.

A general-purpose computer  of the sort that we will be programming stores its control programs in its memory and is capable of changing its control program and hence changing what it does. This is in contrast to a special-purpose computer , such as the one that resides in your microwave oven or the one that controls your digital watch or calculator. These types of computers contain control programs that are fixed and cannot be changed.

A computer's hardware is organized into several main subsystems or components.

The computer's software  can be distinguished into two main types:

Another important thing that the operating system does is to serve as an interface between the user and the hardware. The operating system determines how the user will interact with the system, or conversely, how the system will look and feel to the user. For example, in command-line systems, such as Unix and DOS (short for Disk Operating System), a program is run by typing its name on the command line. By contrast, in graphically based systems, such as Windows and Macintosh, a program is run by clicking on its icon with the mouse. Thus, this ``point and click'' interface has a totally different ``look and feel,'' but does the same thing.


next up previous contents
Next: Box: Processors Then and Up: Computers, Objects, and Java Previous: What Is Object-Oriented Programming?
Ralph Morelli {Faculty}
6/25/1999