Invoke showB method on second object

Listing 17 invokes the showB method on obj2.

Listing 17 also signals the end of meth, and the end of class A.

Listing 17. Invoke showB method on second object.
    System.out.println(
            "----------------------");
    System.out.println(
           "Display second B-Object");
    obj2.showB();

  }// end meth
}//end class A
File: dx.htm [Next] [Prev]