Advertisement
BlackBoY_

Akses1

Jun 10th, 2021
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. //default
  3. class Akses1 {
  4.     String nama= "Tokici";
  5.     int usia = 18;
  6. }
  7. */
  8.  
  9. /*
  10. //public
  11. public class Akses1 {
  12.     public String nama= "Tokici";
  13.     public int usia = 18;
  14. }
  15. */
  16.  
  17. /*
  18. //private
  19. public class Akses1 {
  20.     private String nama= "Tokici";
  21.     private int usia = 18;
  22. }
  23. */
  24.  
  25. /*
  26. //protect
  27. public class Akses1 {
  28.     protected String nama= "Tokici";
  29.     protected int usia = 18;
  30. }
  31. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement