Skip to content

Instantly share code, notes, and snippets.

@Chibuikekenneth
Last active November 1, 2020 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chibuikekenneth/1539fc0db3a0d1cd7debac43b4f3218d to your computer and use it in GitHub Desktop.
Save Chibuikekenneth/1539fc0db3a0d1cd7debac43b4f3218d to your computer and use it in GitHub Desktop.
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