Created
November 10, 2019 15:17
-
-
Save NeelBhatt/237fc0c1b58b49c90d20c6f9345f2ff3 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
using System; | |
public interface ILogger | |
{ | |
void Log(string info); | |
//Default implementation | |
void LogInfo(string type of information,string info)=>Console.Write(typeofInformation+ " " + info); | |
} | |
public class TextLogger : ILogger | |
{ | |
public void Log(string info)=> Console.Write("In base Logger"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment