Override method
Пример переопределения метода. package pro.bolshakov; public class Test1 { public static class A{ private void test(){ System.out.println(\"test A\"); } } public static class B extends A{ protected void test(){ System.out.println(\"test B\"); } } public static class C extends B{ public void test(){ System.out.println(\"test C\"); } } public static void main(String[] args) { A a_a = ...