Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //-----------------------------------------
  2. class Callum{
  3. private int a,b,c; // Lyle.a = 1 is no longer valid
  4. public Callum(){
  5. this.a = 1;
  6. this.b = 2;
  7. this.c = 3;
  8. }
  9. }
  10.  
  11. Callum Lyle = new Callum(); //Lyle.a = 1, but you still can't view this value as you have no getter/setter
  12. //-----------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement