From 394a847465118a5c6dc1733676156abdfe85a673 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Mon, 22 Feb 2021 03:34:13 +0000 Subject: [PATCH] Finished Defining Property Getters & Setters --- gradebook/src/GradeBook/Book.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/gradebook/src/GradeBook/Book.cs b/gradebook/src/GradeBook/Book.cs index 8d70203..dcf9794 100644 --- a/gradebook/src/GradeBook/Book.cs +++ b/gradebook/src/GradeBook/Book.cs @@ -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)