??
package de.codegym.task.task05.task0527;
/*
Tom und Jerry
*/
public class Solution {
public static void main(String[] args) {
Maus jerryMaus = new Maus("Jerry", 12, 5);
Hund tyson = new Hund ("Tyson",30,20);
Katze tiger = new Katze("Tiger",15,10);
//schreib hier deinen Code
public static class Hund {
String name;
int groesse;
int schwanz;
public Hund(String name, int groesse, int schwanz){
this.name=name;
this.groesse=groesse;
this.schwanz=schwanz;
}
public class Katze{
String name;
int groesse;
int schwanz;
}
public Katze(String name, int groesse,int schwanz){
this.name=name;
this.groesse=groesse;
this.schwanz=schwanz;
}
}
}
public static class Maus {
String name;
int groesse;
int schwanz;
public Maus(String name, int groesse, int schwanz) {
this.name = name;
this.groesse = groesse;
this.schwanz = schwanz;
}
}
//schreib hier deinen Code
}