Skip to content

Instantly share code, notes, and snippets.

@uncoded-ro
Created January 12, 2020 10:48
Show Gist options
  • Save uncoded-ro/dbc54078f88b2328a25bf0c366e7ddd4 to your computer and use it in GitHub Desktop.
Save uncoded-ro/dbc54078f88b2328a25bf0c366e7ddd4 to your computer and use it in GitHub Desktop.
package ro.virtualcampus.obiectgrafic;
public class Patrat extends Dreptunghi {
public Patrat(double latura) {
super(latura, latura);
}
public Patrat(double x, double y, double latura) {
super(x, y, latura, latura);
}
@Override
public String toString() {
return "Patrat [lungime=" + lungime + ", latime=" + latime
+ ", x=" + x + ", y=" + y + "]";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment