0
Fill in the blanks to create an auto-property named Age of type int.
The below code I'm not sure what to put. class Dog { public int Age { I'M NOT SURE WHAT TO PUT HERE set; } }
2 Respostas
+ 1
I'm no good with C#, but as I see it, your class doesn't have any member variable that is encapsulated by the property, not sure what to return on the getter part. No worries, loads of C# coders here, just wait a bit.
0
class Dog
{
public int Age { get;set; }
}