Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created April 28, 2021 19:44
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 manoj-choudhari-git/48aa8b5ed81330c0dbf21b8ca75462fb to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/48aa8b5ed81330c0dbf21b8ca75462fb to your computer and use it in GitHub Desktop.
Sample interface and its implementation for default method implementation in interfaces demo C# 8
public interface IPlayMusic
{
void Play();
void Stop();
}
public class SomeMusicPlayer: IPlayMusic
{
public void Play()
{
}
public void Stop()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment