Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class MemberAccessTest here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class MemberAccessTest
- {
- public static void main (String [] args)
- {
- Time1 time = new Time1();
- time.hour = 7; // error: hour has private access in Time1
- time.minute = 15;// error: minute has private access in Time1
- time.second = 30;// error: second has private access in Time1
- }//end main
- }//end MemberAccessTest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement