OOPortal OOPortal

Structured Programming   «Prev  Next»
Lesson 7 Object-oriented programming terminology
ObjectiveUnderstand basic object-oriented programming terminology.

OO Programming Terminology

Computer programs that perform complicated tasks tend to be very large, and as you might imagine, large programs tend to be hard to create and to maintain. Over the years a number of different programming models have evolved to address this issue. At the core of each of these models is the strategy of solving large, complex problems by partitioning them into smaller, simpler problems. Most programming languages are designed to primarily support a single programming model.
Java is an object-oriented programming language. Although this course will not be focusing on Java's object-oriented programming features, it is necessary for you to have a basic understanding of several object-oriented programming concepts and terms.
In Java, a program is made up of one or more classes. Very roughly speaking, a class is a collection of data along with instructions for what to do with the data. The data in a class is stored in variables, and the instructions in a class are implemented as methods (similar to functions or procedures in procedural languages such as C or BASIC). Variables and methods can be associated with a class or with instances of a class called objects.
If these terms seem a bit confusing at this point, that is to be expected. As you proceed through the course, your understanding of these concepts will deepen. The primary reason for introducing this terminology now is that all Java programs, even very simple Java programs, consist of classes, variables, and methods.
In the next lesson we will take a closer look at the HelloWorld program.