import java.lang.*; class One { int first = 100; int func() { return first; } } class Two extends One { int first = 200; int func() { return -first; } } public class Override { public static void main(String args[]) { Two obj2 = new Two(); System.out.println(obj2.first); System.out.println(obj2.func()); One obj1 = (One) obj2; System.out.println(obj1.first); System.out.println(obj1.func()); } }