@@ -0,0 +1,756 @@
+package com.javarush.task.task12.task1215;%0A%0A/* %0A%D0%9A%D0%BE%D1%88%D0%BA%D0%B8 %D0%BD%D0%B5 %D0%B4%D0%BE%D0%BB%D0%B6%D0%BD%D1%8B %D0%B1%D1%8B%D1%82%D1%8C %D0%B0%D0%B1%D1%81%D1%82%D1%80%D0%B0%D0%BA%D1%82%D0%BD%D1%8B%D0%BC%D0%B8!%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A%0A    %7D%0A%0A    public static abstract class Pet %7B%0A        public abstract String getName();%0A%0A        public abstract Pet getChild();%0A    %7D%0A%0A    public static class Cat extends Pet %7B%0A        @Override%0A        public String getName() %7B%0A            return %22%D0%9A%D0%BE%D1%88%D0%BA%D0%B0%22;%0A        %7D%0A%0A        @Override%0A        public Pet getChild() %7B%0A            return new Cat();%0A        %7D%0A    %7D%0A%0A    public static class Dog extends Pet %7B%0A        @Override%0A        public String getName() %7B%0A            return %22%D0%A1%D0%BE%D0%B1%D0%B0%D0%BA%D0%B0%22;%0A        %7D%0A%0A        @Override%0A        public Pet getChild() %7B%0A            return new Dog();%0A        %7D%0A    %7D%0A%0A%7D%0A

Complete task1215