Computer Science 252
Problem Solving with Java
Fall 2015, The College of Saint Rose
Lecture 8: Defining Classes
Date: Thursday, September 24, 2015
Agenda
- Announcements
- Don't forget the deadline for problet code submissions is tomorrow night
- Labs due soon:
- More custom classes
- Lab 6: Irate Ibises out
- The in-class exercise formerly in this space has been delayed
Lecture 8 Assignment
Due at the start of class, Tuesday, September 29.
Please submit answers to these questions
either as a hard copy (typeset or handwritten are OK) or by email to
terescoj AT strose.edu by the start of class. Please use a clear subject line
when submitting by email (e.g., CSC 252 Lecture
8 Assignment , Joe Student). We will discuss these
questions at the start of class, so no late submissions are
accepted.LA8
- Suppose we would like to develop a class called RoundFrame
that uses two FilledOvals, one larger with a given color, and
one smaller that is always white. One of these objects would look
like this:
- give instance variables that could be used for this class (2 points)
- write the move method forthis class (2 points)
- Write hide and show methods for the NiceBBall
class in the FancyBasketball example. (6 points)
Examples