Laboratory 4

Being Classy

Week of 14 February, 2005



Home | Resources | Homeworks | Slides | Labs | Contacts | Submit | Forums | Private

Downloads

SmileWindow.java and SmileyFace.java.

 

Objective

Objects are the basic units of programming in object-oriented languages. In Java, new types of objects are defined by designing and implementing classes. A class is the blueprint from which objects can be created. This laboratory introduces designing and working with your own classes. In particular, the laboratory has you build a program by creating two classes. The laboratory also considers the different kinds of methods that classes can have.

 

Key Concepts

 

Getting started

Copy the laboratory files to your PC.

 

Design


 

 

More Design and Code Production: SmileyFace.java

 

Putting it Together: SmileWindow.java

 

Finishing up