Hello I have these classes in my Java exercise: Rectangle and Ellipse. Is Square child of Rectangle or should I make special constructor?
// constructor for Square
public Rectangle(double side) {
this.width = side;
this.height = side;
}
Is Circle child of Ellipse (extends)?
This could be a simple application like Kojo or Geogebra.