@@ -0,0 +1,1009 @@
+package com.javarush.task.task20.task2023;%0A%0A/* %0A%D0%94%D0%B5%D0%BB%D0%B0%D0%B5%D0%BC %D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9 %D0%B2%D1%8B%D0%B2%D0%BE%D0%B4%0A*/%0Apublic class Solution %7B%0A    public static void main(String%5B%5D s) %7B%0A        A a = new C();%0A        a.method2();%0A    %7D%0A%0A    public static class A %7B%0A        private void method1() %7B%0A            System.out.println(%22A class, method1%22);//5%0A        %7D%0A%0A        public void method2() %7B%0A            System.out.println(%22A class, method2%22);//3%0A            method1();//4%0A        %7D%0A    %7D%0A%0A    public static class B extends A %7B%0A        public void method1() %7B%0A            super.method2();//2%0A            System.out.println(%22B class, method1%22);//6%0A%0A        %7D%0A%0A        public void method2() %7B //%D0%BD%D0%B5 %D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D1%83%D0%B5%D1%82%D1%81%D1%8F%0A            System.out.println(%22B class, method2%22);%0A        %7D%0A    %7D%0A%0A    private static class C extends B %7B%0A        public void method1() %7B%0A            System.out.println(%22C class, method1%22);%0A        %7D%0A%0A        public void method2() %7B%0A            System.out.println(%22C class, method2%22);//0%0A            super.method1();//1%0A%0A        %7D%0A    %7D%0A%7D%0A

Task --> 2023