-
-
Save uncoded-ro/dbc54078f88b2328a25bf0c366e7ddd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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