Advertisement
BlackBoY_

Akses3

Jun 10th, 2021
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. //default
  3. public class Akses3 {
  4.       Akses1 object1 = new Akses1();  
  5.     }
  6. }
  7. */
  8.  
  9. /*
  10. //public,private,protected
  11. import Alpha.Akses1;
  12.  
  13. public class Akses3 {
  14.     public static void main(String[] args) {
  15.       Akses1 object1 = new Akses1();
  16.         System.out.println(object1.nama);
  17.         System.out.println(object1.usia);    
  18.     }
  19. }
  20. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement