/* Author : Michael Robinson Program : protectedTesting.java Purpose : How to use protected methods Protected Methods Access Levels Modifier Class Package Subclass Everybody public Y Y Y Y protected Y Y Y N no modifier Y Y N N private Y N N N Updated : October 24, 2099 */ public class protectedTesting { public static void main( String arg[] ) { //calls the protected publicName() method from the //the protectedWay class protectedWay.publicName(); //calls the protected protectedName() method from the //the protectedWay class protectedWay.protectedName(); }//end public static void main( String arg[] ) }//end public class protectedTesting