Menu

Class Polygon Declares

0 Comment

1.Write a java app that contains classes Polygon, Rectangle, and myMain. Class Polygon declaresclass polygont
float height;
float width;
public void setwidth(float width) {
this . width=width;
public void setHeight(float height) {
this . height=height;
11 *
class Rectangle extends Polygont…Java Programming