Objects and Classes
CSC 140

Topics

In-Class Lab (2 points shared with January 30th)

Add the Left and Right Buttons, as seen on page 171 of the text, to the PlayBalloon Applet, and make them work properly.  Also, add the private float calcArea() method, as seen on page 152 of the text, to the Balloon class.  Have the Balloon print its area under itself inside public void display(Graphics g).

Readings

Chapter 9.  Read everything carefully except the section on static.  We will cover static later.  Almost everything in this chapter is important.  I thoroughly disagree with the author's statement in the section on Classes and files, page 162, that both of his presented alternatives for file organization are equally satisfactory.  For this class, always put every class into its own file.  

badman.jpg (2629 bytes) Office:  B132 Phone:  353-2250 sbadman@parkland.edu