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