Advertisement
lamaulfarid

MemberAccessTest

Oct 14th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. /**
  2.  * Write a description of class MemberAccessTest here.
  3.  * Private members of class Time 1 are not accessible
  4.  * @author Ahmad Lamaul Farid
  5.  * @version 08 Oktober 2020
  6.  */
  7. public class MemberAccessTest
  8. {
  9.     public static void main( String[] args )
  10.     {
  11.         Time1 time = new Time1();
  12.        
  13.         time.hour = 7;
  14.         time.minute = 15;
  15.         time.second = 30;
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement