Interfaces (Exercise) – Learn C#

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!

 

Is there a naming convention for interfaces?
Which access modifier(s) can be applied to methods implemented from an interface?

Assignment: Create two interfaces and implement them in one class.

 

Click to see the answer

 

Leave a comment


This site uses Akismet to reduce spam. Learn how your comment data is processed.


Development made simple

We're here to help you. If you have any questions, let us know.

Copyright 2017 - 2018 Reso Coder © All Rights Reserved