Last active
November 1, 2020 15:28
-
-
Save Chibuikekenneth/1539fc0db3a0d1cd7debac43b4f3218d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class School | |
{ | |
private ISchool _school; | |
public ISchool school | |
{ | |
get | |
{ | |
if (_school == null) school = new HavardUniversity(); | |
return _school; | |
} | |
set { _school = value; } | |
} | |
public string AttendClass(string student) | |
{ | |
return school.Learn(student); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment