public interface IPrinter
{
public void Print()
{
Console.WriteLine("Printing...");
}
}
public interface IScanner
{
public void Scan()
{
Console.WriteLine("Scanning...");
}
}
public class Copier : IPrinter, IScanner
{
public void ScannAndPrint()
{
Scan();
Print();
Console.WriteLine("Scanning and Printing complete!");
}
}
I get the following compiler errors:
CS0103 "The name 'Scan' does not exist in the current context"
CS0103 "The name 'Print' does not exist in the current context"
How to achive this kind of concept? I want to use default interface methods feature.