+ 1

I don't get this

( https://www.sololearn.com/Play/CSharp ) 3/3 I really don't get the last one why should i put "Return();" i don't get it, could someone please explain to me why we put "Return"? Fill in the blanks to declare a Person class, hide the age member, and make it accessible through the GetAge method. class Person { private int age; public int GetAge() { return age; } public void SetAge(int n) { age = n; } }

13th Jul 2020, 4:28 PM
Yousif Alsewaidi
Yousif Alsewaidi - avatar
5 Respuestas
+ 2
Hmm please please the appropriate link of your doubt
13th Jul 2020, 4:42 PM
Nilesh
Nilesh - avatar
+ 1
class, public, return
6th Oct 2022, 8:19 PM
Zeshan Nissar
0
Oh sorry about that, ok done
13th Jul 2020, 5:00 PM
Yousif Alsewaidi
Yousif Alsewaidi - avatar