@@ -0,0 +1,1252 @@
+package com.javarush.task.task21.task2109;%0A%0A/* %0A%D0%97%D0%B0%D0%BF%D1%80%D0%B5%D1%82%D0%B8%D1%82%D1%8C %D0%BA%D0%BB%D0%BE%D0%BD%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%0A*/%0Apublic class Solution %7B%0A    public static class A implements Cloneable %7B%0A        private int i;%0A        private int j;%0A%0A        public A(int i, int j) %7B%0A            this.i = i;%0A            this.j = j;%0A        %7D%0A%0A        public int getI() %7B%0A            return i;%0A        %7D%0A%0A        public int getJ() %7B%0A            return j;%0A        %7D%0A    %7D%0A%0A    public static class B extends A %7B%0A        private String name;%0A%0A        public B(int i, int j, String name) %7B%0A            super(i, j);%0A            this.name = name;%0A        %7D%0A%0A        public String getName() %7B%0A            return name;%0A        %7D%0A%0A        @Override%0A        protected Object clone() throws CloneNotSupportedException %7B%0A            throw new CloneNotSupportedException();%0A        %7D%0A    %7D%0A%0A    public static class C extends B implements Cloneable %7B%0A        public C(int i, int j, String name) %7B%0A            super(i, j, name);%0A        %7D%0A%0A        @Override%0A        protected C clone() throws CloneNotSupportedException %7B%0A            int i = getI();%0A            int j = getJ();%0A            String name = getName();%0A%0A            return new C(i, j, name);%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A    %7D%0A%7D%0A

Task --> 2109