Interfaces (Exercise) – Learn C#

0  comments

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

 

About the author 

Matt Rešetár

Matt is an app developer with a knack for teaching others. Working as a Flutter freelancer and most importantly developer educator, he doesn't have a lot of free time 😅 Yet he still manages to squeeze in tough workouts 💪

You may also like

Flutter Bloc & Cubit Tutorial

Flutter Custom & Staggered Page Transition Animation Tutorial

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>