Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface IWorker
- {
- public void Foo()
- {
- Console.WriteLine("IWorker");
- }
- }
- interface IAnotherWorker
- {
- public void Foo()
- {
- Console.WriteLine("IAnotherWorker");
- }
- }
- class DefaultWorker : IAnotherWorker, IWorker
- {
- }
- //Somewhere
- DefaultWorker worker = new DefaultWorker();
- worker.Foo();
Add Comment
Please, Sign In to add comment