25 lines
287 B
Java
25 lines
287 B
Java
public class Croco extends Animal{
|
|
|
|
//Konstruktor
|
|
Croco (int a, int s, String n, String b, String h){
|
|
age = a;
|
|
size = s;
|
|
name = n;
|
|
breed = b;
|
|
haut = h;
|
|
}
|
|
|
|
Croco (String n, String b){
|
|
this.name = n;
|
|
this.breed = b;
|
|
}
|
|
|
|
|
|
//Methoden
|
|
public void eat(){
|
|
System.out.println("Happ Happ");
|
|
}
|
|
|
|
|
|
|
|
} |