Practice with variable visibility
Comments (116)
- Popular
- New
- Old
You must be signed in to leave a comment
Hoist
19 August 2023, 05:48
See CodeGym Articles (and the Video) for Setting and and Getting data values
https://codegym.cc/groups/posts/getters-and-setters
> When you see a Topic that is _new_ check out the Articles inside CodeGym. Also their are great Videos.
When data is "private" in the class (the blueprint) -- how can it be accessed and modified ?
0
CT
8 August 2023, 14:48
hey I just wanted to check how the assignments are getting validated. Do we have access to unit test cases so that we can understand them more clearly?
0
chonksta QA Automation Engineer at Samsung
23 June 2023, 04:03
Search youtube for getters, setters, constructors java
+1
rags 3Expert
20 June 2023, 02:55
definitely would say read head first java definitely helped connect the dots for me
+1
abhishe_kiraExpert
3 June 2023, 09:53
hey Learner if you are new to java please watch Oops concept before solving these problems.
+1
rags 3Expert
20 June 2023, 02:57
thank you that help allot still alone wasn't enough for me at this point was to frustrated but all and all little here little there and maybe success
0
Simphiwe Full Stack Developer
9 February 2023, 10:53
Practice makes perfect 💯
0
Lunita
3 February 2023, 16:09
I'm proud of myself RN, got all at the first attempt! 😃
+1
Lunita
3 February 2023, 14:16
NOTE: No need to output in main method.
* If a method is declared with the keyword "static", then to access the class variable, you must use "Classname.variableName".
* If a method is NOT declared with the keyword "static", then to access the class variable, you must use the special keyword "this", i.e. "this.variableName".
+8
Anonymous #11263161
22 January 2023, 02:11
Yeah... I have some Java experience through my college course, but this is just going to go way over the heads of most people just starting this course. Why is Object Oriented Programming in this early?
+3
hidden #11162976
7 November 2022, 22:05
And so the cat will be "nameless" forever :D
+3