Question: Brick - pointValue : int + BRICK _ WIDTH : int + BRICK _ HEIGHT : int Brick point value when hit by the ball.

Brick -pointValue : int +BRICK_WIDTH : int +BRICK_HEIGHT : int Brick point value when hit by the ball. Width of the brick (public constant) Height of the brick (public constant)+Brick( xLoc : int, yLoc : int )//getter and setter for pointValue Constructor that creates the Brick at the given loc. Note: The Brick has other basic properties that are inherited from the Rectangle class (e.g. Color ). I made my bricks 35x20.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!