001package basics.inner.one;
002public class Main {
003        private Main() {}
004        static public void main (final String[] args) {
005                //stdlib.Trace.graphvizShowSteps (true); stdlib.Trace.run ();
006                C mc1 = new C(42);
007                C mc2 = new C(36);
008                mc1.f();
009                mc2.f();
010        }
011}
012
013interface Print { void print(); }
014
015class C {
016        int cx;
017        C(int x) { cx = x; }
018        class P implements Print {
019                int py = 27;
020                public void print() {
021                        System.out.println(" cx=" + cx + " py=" + py);
022                }
023        }
024        void f() {
025                Print p = new P();
026                p.print();
027        }
028}
029
030