GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Abstract Class Example

joannazhang13 Englisch 1 Seite

Inhalt der Notizen (1)

Seite 1

public abstract class Shape implements Comparable

{

private String name;

//constructor

public Shape (String n)

{

name= n;

}

//accessor

public String getName()

{

return name;

}

//methods

public abstract double area();

public abstract double perimeter();

public abstract int compareTo(Shape s);

}

Informationen

Beschreibung
Example of Java abstract class
Erstellt von
joannazhang13 · Mai 2015
Aktualisiert
20 Feb 2016
Aufrufe
58
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck