Chapter 6

Exercise 6.28

The bugs in the bricks project are:

class Brick:

getSurfaceArea() – side1 should be side2 in sum
getWeight() – 1000 should be 1000.0

class Palette:

getHeight() – % should be *
getWeight() – + baseWeight is missing