Class Exercise5_5

java.lang.Object
  extended byExercise5_5

public class Exercise5_5
extends java.lang.Object

The public class


Field Summary
private  ProtectedData pd
           
 
Constructor Summary
Exercise5_5()
          Directly mainpulate the protected variables in the friendly class
 
Method Summary
 void alterProtected(int i)
          Default constructor that create an instance of the friendly class
static void main(java.lang.String[] args)
          The main method.
 void showData()
          Show content of friendly class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pd

private ProtectedData pd
Constructor Detail

Exercise5_5

public Exercise5_5()
Directly mainpulate the protected variables in the friendly class

Method Detail

alterProtected

public void alterProtected(int i)
Default constructor that create an instance of the friendly class


showData

public void showData()
Show content of friendly class


main

public static void main(java.lang.String[] args)
The main method.