Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- public A()
- {
- System.out.println("a");
- }
- }
- class X
- {
- public X()
- {
- System.out.println("x");
- }
- }
- class B extends A
- {
- public B()
- {
- System.out.println("b");
- }
- private X data_x = new X();
- }
- class App {
- public static void main(String[] args) {
- myB = new B();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement