Computer Science 252
Problem Solving with Java

Fall 2015, The College of Saint Rose

Lecture 8: Defining Classes
Date: Thursday, September 24, 2015


Agenda

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

  1. 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:
  2. Write hide and show methods for the NiceBBall class in the FancyBasketball example. (6 points)

Examples