Finished Defining Property Getters & Setters

building_types
Jason Zhu 2021-02-22 03:34:13 +00:00
parent 1b64a1fa8b
commit 394a847465
1 changed files with 2 additions and 11 deletions

View File

@ -10,17 +10,8 @@ namespace GradeBook
private string name; private string name;
public string Name public string Name
{ {
get get;
{ set;
return name;
}
set
{
if (!String.IsNullOrEmpty(value))
{
name = value;
}
}
} }
public Book(string name) public Book(string name)