You are on page 1of 1

Practice 2: Working with Object-Oriented Principles Understanding Object-Oriented Principles 1. Define the following terms: a. Class b. Object c.

Encapsulation d. Inheritance e. Polymorphism Identifying Business Classes, Attributes, and Methods 2. Identify some of the classes in the Order Entry business, limiting yourself to three. The process of identifying a class is to look for nouns that classify a group of things from the business description. Some nouns describe the attributes of a class. Write a simple sentence or two describing each class to make sure that it is of interest to the business. 3. Identify a few attributes for each of the new classes. Remember that attributes may be other classes. 4. Define some behaviors (methods or operations) for each of the classes that you have discovered. If you have time: 5. Look for classes that can inherit structure (attributes) and behavior (methods) from other classes. Modify your definitions to reflect the inheritance model.

OracleAS 10g R3: Java Programming 2-33

You might also like