Interfaces are a very important part of object oriented programming. How can you assure that a class is exposing a certain method? Well, the methods exposed by a class are collectively called an interface. In C# you can use interfaces to literally simplify your life!
This is an exercise for this YouTube video.
Happy learning and good luck!
Assignment: Create two interfaces and implement them in one class.
Click to see the answer
class View : IDeleteable, ICloneable
public void Delete()
System.Console.WriteLine("Let's pretend that I was deleted.");
public object Clone()
System.Console.WriteLine("Let's pretend that I was cloned.");