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!
[qsm quiz=10]
Assignment: Create two interfaces and implement them in one class.
Click to see the answer
interface IDeleteable
{
void Delete();
}
interface ICloneable
{
object Clone();
}
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.");
return this;
}
}

Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article. https://www.binance.info/register?ref=IXBIAFVY
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.info/id/register?ref=UM6SMJM3
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your article helped me a lot, is there any more related content? Thanks!
Your point of view caught my eye and was very interesting. Thanks. I have a question for you. https://www.binance.com/pt-BR/register?ref=GJY4VW8W