Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------------------
- class Callum{
- private int a,b,c; // Lyle.a = 1 is no longer valid
- public Callum(){
- this.a = 1;
- this.b = 2;
- this.c = 3;
- }
- }
- Callum Lyle = new Callum(); //Lyle.a = 1, but you still can't view this value as you have no getter/setter
- //-----------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement