@@ -0,0 +1,665 @@
+package com.javarush.task.task12.task1203;%0A%0A/* %0A%D0%9A%D0%B5%D1%81%D0%B0%D1%80%D1%8E %E2%80%94 %D0%BA%D0%B5%D1%81%D0%B0%D1%80%D0%B5%D0%B2%D0%BE%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Pet pet1 = new Cat();%0A        Pet cat = pet1.getChild();%0A%0A        Pet pet2 = new Dog();%0A        Pet dog = pet2.getChild();%0A    %7D%0A%0A    public static class Pet %7B%0A        public Pet getChild() %7B%0A            return new Pet();%0A        %7D%0A    %7D%0A%0A    public static class Cat extends Pet %7B%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 Pet getChild() %7B%0A            return new Dog();%0A        %7D%0A    %7D%0A%7D%0A

Complete task1203