Complete the code to declare an interface named IShape.
public interface [1] { void Draw(); }The interface name should start with 'I' by convention, so 'IShape' is correct.
Complete the code to declare an abstract class named Shape.
public abstract class [1] { public abstract void Draw(); }
The abstract class should be named 'Shape' without the 'I' prefix.
Fix the error in this class declaration that tries to inherit from an interface and an abstract class.
public class Circle : [1], IShape { public override void Draw() { } }
The class should inherit from the abstract class 'Shape' and implement the interface 'IShape'.
Fill both blanks to complete the interface and abstract class usage correctly.
public interface [1] { void Draw(); } public abstract class [2] { public abstract void Draw(); }
The interface is named 'IShape' and the abstract class is named 'Shape' to follow conventions.
Fill all three blanks to implement a class that inherits from an abstract class and implements an interface.
public interface [1] { void Draw(); } public abstract class [2] { public abstract void Draw(); } public class [3] : [2], [1] { public override void Draw() { } }
The interface is 'IShape', the abstract class is 'Shape', and the class implementing both is 'Circle'.