C Sharp (C#) - Interfaces
Find the error in this code snippet:
interface IPrinter {
void Print();
}
class Document : IPrinter {
public void Print(string text) {
Console.WriteLine(text);
}
}Find the error in this code snippet:
interface IPrinter {
void Print();
}
class Document : IPrinter {
public void Print(string text) {
Console.WriteLine(text);
}
}15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions