Write a program using getter and setter method in java

Write java program class name student there are three private variables id, name, & add and make marks array variable use getter setter method.

11th Aug 2017, 6:13 PM
bhavsar aman
bhavsar aman - avatar
2 Answers
+ 4
You could try it yourself first.
11th Aug 2017, 6:31 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
Yep, write something even if it won't work (make that code public) and show us we then can see what errors do you make and will advice you...
11th Aug 2017, 8:05 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar