Finished Defining Property Getters & Setters

jason.zhu 2021-02-22 03:34:13 +00:00
parent fc7844c6bc
commit fe0727fb03
1 changed files with 2 additions and 11 deletions

View File

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