Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class KreisIstPunkt extends PunktNeu {
- private double r;
- // Constructor
- public KreisIstPunkt(double x, double y, double r) {
- super(x, y);
- this.r = r;
- }
- // Anstelle der 'anzeige()'
- public String toString(){
- String myString = String.valueOf(this.x) +", " + String.valueOf(this.y) + ", " + String.valueOf(this.r);
- return myString;
- }
- public double getR() {
- return r;
- }
- public void setR(double r) {
- this.r = r;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement