0
Hello,i want to know if i can use String infront of get .
for example: void setNom(String a){ this.nom = n; } String getNom(string nom){ return nom; }
2 Answers
+ 2
Yes, as long as you also return a String it'll work.
0
ohhh thanks @Robobrine đ
for example: void setNom(String a){ this.nom = n; } String getNom(string nom){ return nom; }