Skip to content

Instantly share code, notes, and snippets.

@NeelBhatt
Created November 10, 2019 15:17
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 NeelBhatt/237fc0c1b58b49c90d20c6f9345f2ff3 to your computer and use it in GitHub Desktop.
Save NeelBhatt/237fc0c1b58b49c90d20c6f9345f2ff3 to your computer and use it in GitHub Desktop.
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