C Sharp (C#) - Interfaces
Given the code below, what will be the output?
interface IShape { void Draw(); }
abstract class ShapeBase : IShape {
public abstract void Draw();
public void Display() { Console.WriteLine("Displaying shape"); }
}
class Circle : ShapeBase {
public override void Draw() { Console.WriteLine("Drawing Circle"); }
}
var c = new Circle();
c.Draw();
c.Display();