I have been learning about collections such as arrays and arraylists and lists and have come across the term "interface" a fair bit. I know that an IList is an "interface" but I dont understand what an interface is or does.
- What is an interface in C#?
- How does IList differ from List?
- Where do we use an interface?
- When do we use an interface in our code?
This question is probably a simple one but I am still learning, Thankyou