@@ -0,0 +1,673 @@
+package com.javarush.task.task12.task1222;%0A%0A/* %0A%D0%91%D0%BE%D0%BB%D1%8C%D1%88%D0%B5 %D0%BD%D0%B5 %D0%9F%D1%83%D1%88%D0%B8%D1%81%D1%82%D0%B8%D0%BA%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Pet pet = new Cat();%0A        pet.setName(%22%D0%AF - %D0%BF%D1%83%D1%88%D0%B8%D1%81%D1%82%D0%B8%D0%BA%22);%0A%0A        System.out.println(pet.getName());%0A    %7D%0A%0A    public static class Pet %7B%0A        protected String name;%0A%0A        public Pet() %7B%0A        %7D%0A%0A        public String getName() %7B%0A            return name;%0A        %7D%0A%0A        public void setName(String name) %7B%0A            this.name = name;%0A        %7D%0A%0A    %7D%0A%0A    public static class Cat extends Pet %7B%0A        @Override%0A        public void setName(String name) %7B%0A            super.setName(%22%D0%AF - %D0%BA%D0%BE%D1%82%22);%0A        %7D%0A    %7D%0A%7D%0A

Complete task1222