CPTR-241 Homework #10 for Monday 2/05/18


In class we looked at a hierarchy of subclasses. The assignment is to extend the ColorTriangle sublass to have a subclass that defines type of triangle, defines a thickness, and calculates volume. An example source file "extend_classes.java", which is the example Shapes6 on pages 242 and 243 of the text, can be downloaded to use as a starting point. Make sure to fill in the "header" of your version of the program with your name, date, homework number 10, and a description of the subclass(s) you created. Also state if the program functioned as desired.

Read chapter 7.


Larry Aamodt PhD, PE
Professor of Engineering and Computer Science
Walla Walla University
Contact:
via email: AamoLa (at) wallawalla.edu
via phone: x2058