+ 2
How to Make one program Encapsulation "Show file Students with attributed : name is public, number is private, score is private. Use retrun if you can" with logic.
8 ответов
+ 4
Pleasure Sekar. 😊 If you want to learn first then you can "Decline" my challenges but if you want to keep challenging me then that's okay too. Just know that you'll stand a better chance of winning when you've completed the course.
+ 2
Welcome to Sololearn Sekar 😉
+ 2
thanks for much challenge me gavin
+ 2
yes i remember you Abdul and maybe you must help me hhh
i am keep challenging because it's good Gavin, it's ok not getting point but get knowledge
+ 1
still have group WhatsApp @Abdul
+ 1
@abdul me too, quit the group long time ago.
+ 1
your a developer @abdul ??
0
I did not understand exactly what you want to do.
but if you declared a private attribute write the getter and setter methods to access and modify the attribute.
some like
public int getScore(){
return this.score;
}
public void setScore(int score){
this.score=score;
}