Professional Documents
Culture Documents
M251 - Meeting 7 - V1 - Activity - Solution
M251 - Meeting 7 - V1 - Activity - Solution
//A
//B
public Shape(){
this(0);
height = a;
height = a;
return height;
}
public abstract double calArea();
//C
//2+3
//5
//4
{ return width; }
{ this.width = width; }
//7
//8
color = "Red";
else
return 0;
} //End of class
//D
r1.makeItRed();