Invoke showB on the first object

Listing 11 invokes showB on the first object instantiated in Listing 10.

showB will, in turn, invoke showA on the containing object instantiated from class A.

Listing 11. Invoke showB on the first object.
System.out.println(
            "----------------------");
System.out.println(
            "Display first B-Object");
obj1.showB();
File: di.htm [Next] [Prev]