I need to make JAVA program that calculates the area of
a brick of a specific color.
I have class Brick with the following UML:
String color
int number
int length
int width
I made methods: getColor(), getNumber(), getLength(), getWidth() in
the class Brick
So it starts like this:
#####
public Brick(String color, int number, int length, int
width)
{
this.color = color;
this.number = number;
this.length = length;
this.width = width;
}
public String toString()
{
return number...