Back to showB in class B

See Listing 12.

showB displays several private and protected variables,

(Code in showB has direct access to xVar,

Listing 12. Back to showB in class B.
//Cont with local class B definition
void showB(){
  System.out.println("-1-");
  System.out.println(
   "In showB, private bTime = " + bTime);
  System.out.println(
   "In showB, private aTime = " + aTime);
  System.out.println(
          "In showB, final methTime = " +
                               methTime);
  System.out.println(
   "In showB, protected xVar = " + xVar);
  System.out.println(
   "In showB, protected yVar = " + yVar);
  System.out.println(
              "In showB, class name = " +
                   getClass().getName());
File: dj.htm [Next] [Prev]