@@ -0,0 +1,1253 @@
+package com.javarush.task.task12.task1225;%0A%0A/* %0A%D0%9F%D0%BE%D1%81%D0%B5%D1%82%D0%B8%D1%82%D0%B5%D0%BB%D0%B8%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(getObjectType(new Cat()));%0A        System.out.println(getObjectType(new Tiger()));%0A        System.out.println(getObjectType(new Lion()));%0A        System.out.println(getObjectType(new Bull()));%0A        System.out.println(getObjectType(new Cow()));%0A        System.out.println(getObjectType(new Animal()));%0A    %7D%0A%0A    public static String getObjectType(Object o) %7B%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88 %D0%BA%D0%BE%D0%B4%0A        if (o instanceof Tiger) %7B%0A            return %22%D0%A2%D0%B8%D0%B3%D1%80%22;%0A        %7D else if (o instanceof Lion) %7B%0A            return %22%D0%9B%D0%B5%D0%B2%22;%0A        %7D else if (o instanceof Cat) %7B%0A            return %22%D0%9A%D0%BE%D1%82%22;%0A        %7D else if (o instanceof Bull) %7B%0A            return %22%D0%91%D1%8B%D0%BA%22;%0A        %7D else if (o instanceof Cow) %7B%0A            return %22%D0%9A%D0%BE%D1%80%D0%BE%D0%B2%D0%B0%22;%0A        %7D%0A        return %22%D0%96%D0%B8%D0%B2%D0%BE%D1%82%D0%BD%D0%BE%D0%B5%22;%0A    %7D%0A%0A    public static class Cat extends Animal   //%3C--%D0%9A%D0%BB%D0%B0%D1%81%D1%81%D1%8B %D0%BD%D0%B0%D1%81%D0%BB%D0%B5%D0%B4%D1%83%D1%8E%D1%82%D1%81%D1%8F!!%0A    %7B%0A    %7D%0A%0A    public static class Tiger extends Cat %7B%0A    %7D%0A%0A    public static class Lion extends Cat %7B%0A    %7D%0A%0A    public static class Bull extends Animal %7B%0A    %7D%0A%0A    public static class Cow extends Animal %7B%0A    %7D%0A%0A    public static class Animal %7B%0A    %7D%0A%7D%0A

Complete task1225