Skip to content

Instantly share code, notes, and snippets.

@Chibuikekenneth
Last active November 4, 2020 21:14
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/41aa198d654b9742699c4e9f86b5b87b to your computer and use it in GitHub Desktop.
Save Chibuikekenneth/41aa198d654b9742699c4e9f86b5b87b to your computer and use it in GitHub Desktop.
var schoolInstance = new School();
schoolInstance.AttendClass("Anthony");
var oxford = new OxfordUniversity();
//Injecting the dependency via a property, which is the School Property
schoolInstance.school = oxford;
schoolInstance.AttendClass("Kenneth");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment