Created
February 20, 2018 14:27
-
-
Save PoisonousJohn/29d374e18ef9d903b75391807271a14a to your computer and use it in GitHub Desktop.
Coupling sample
This file contains hidden or 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
using System; | |
public class Logger | |
{ | |
public void Info(string msg) | |
{ | |
Console.WriteLine(msg); | |
} | |
} | |
public static class UberStaticClass | |
{ | |
public static readonly Logger log = new Logger(); | |
} | |
public class Program | |
{ | |
public static void Main() | |
{ | |
UberStaticClass.log.Info("Hello World"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment