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(); // buat dan inisialisasi object Time1
- time.hour = 3; // error : hour punya private access di Time1
- time.minute = 11; // error : minute punya private access di Time1
- time.second = 32; // error : second punya private access di Time1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment