package com.javarush.task.jdk13.task05.task0527;
/*
Π’ΠΎΠΌ ΠΈ ΠΠΆΠ΅ΡΡΠΈ
*/
public class Solution {
public static void main(String[] args) {
Mouse jerryMouse = new Mouse("Jerry", 12, 5);
//Dog pluttoDog = new Dog ("Plutto", 84,5);
Cat tomCat = new Cat ("Tom", 61,15);
//Π½Π°ΠΏΠΈΡΠΈΡΠ΅ ΡΡΡ Π²Π°Ρ ΠΊΠΎΠ΄
}
public static class Mouse {
String name;
int height;
int tail;
public Mouse(String name, int height, int tail) {
this.name = name;
this.height = height;
this.tail = tail;
}
public static class Dog {
String name;
int height;
int tail;
public Dog(String name, int height, int tail) {
this.name = name;
this.height = height;
this.tail = tail;
}
public static class Cat {
String name;
int height;
int tail;
public Cat(String name, int height, int tail) {
this.name = name;
this.height = height;
this.tail = tail;
}
}
}
}
}