Guest User

Untitled

a guest
Oct 14th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. /**
  2.  * Write a description of class MemberAcces here.
  3.  *
  4.  * @author (Muhammad Bagus Istighfar)
  5.  * @version (14.10.20)
  6.  */
  7. public class MemberAccesTest
  8. {
  9.     public static void main (String[] args)
  10.     {
  11.         Time1 time = new Time1();
  12.         time.hours=7;// error: has private acces in Tim1
  13.         time.minute=15;//error: has private acces in Time1
  14.         time.second=30;//error: has private acces in Time1
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment