001    /**
002     * For using Exercise 5.6 from the book
003     * 
004     * @author Kristian Torp, torp (at) cs (dot) aau (dot) dk
005     * @version 1.0
006     */
007    public class UseExercise5_6 {
008            public static void main(String args[]) {
009                    Exercise5_6 c1 = new Exercise5_6();
010                    System.out.println("Using objects");
011                    c1.showPublic();
012                    c1.showProtected();
013                    //c1.showPrivate();
014                    c1.showFriendly();
015    
016                    c1.publicI = 11;
017                    c1.showPublic();
018                    c1.protectedI = 21;
019                    c1.showProtected();
020                    //c1.privateI = 31;
021                    //c1.showPrivate();
022                    c1.friendlyI = 41;
023                    c1.showFriendly();
024    
025            }
026    }