+ 5
Fill in the blanks to define valid get and set accessors for the age member:
class Dog { private int age; public int Age { get { return age; } set { age = value ; } } }
3 Respostas
+ 1
class Dog
{
private int age;
public
Dog(
int
val)
{
age =
val
;
}
}
+ 1
get, return, value
0
Please delete this post. Posts like this belong in the lesson factory, not Q&A.
https://www.sololearn.com/Discuss/1066263/?ref=app
https://www.sololearn.com/Discuss/321242/?ref=app
https://www.sololearn.com/Content-Creation-Guidelines/
https://code.sololearn.com/cvC5lcXdP5yx/?ref=app
https://www.sololearn.com/Discuss/593497/?ref=app
https://www.sololearn.com/Discuss/333866/?ref=app