Topics for the Week of Feb 4
Reading: Chapter 3
- Quiz on Thur. Know:
- Material from last quiz
- Patterns:
- guarded command pattern (if statement)
- alternative action pattern (if-else if -else,…)
- sentinel loop pattern (while statement)
- counter loop pattern (while plus counter)
- Lab Reminder
- Lab 2, part 2 must be demonstrated ( 6 or 8, and 7) by the end of this week.
- Lab 2, part 2 code must be submitted Wed of this week.
(submit instructions)
- Review:
- Applets
- Colors on the Computer
- Using the paint Method to make pictures. Coordinate System. Example: circles, filled circles, snowman, etc
- Exchanging of Information
- Writing Your Own Class
- Syntax of a Class: class keyword, member variables, accessor variables, other methods
- Example:
- Create The Circle Class.
Test it in the Applet.
- Use inheritance to extend the Circle class to create theThe Filled Circle Class.
Test it in the Applet.
- Create a Snowman Class that contains 3 FilledCircle Objects.
Test it in the Applet.
- Create several Snowmen objects in the Applet class.
- Add a button to move the Snowmen.
[top]
[CS 231 Lectures Page]