Interfaces in C# – what they are, how to use them, and why they are so powerful.

Interfaces in C# – what they are, how to use them, and why they are so powerful.

HomeIAmTimCoreyInterfaces in C# – what they are, how to use them, and why they are so powerful.
Interfaces in C# – what they are, how to use them, and why they are so powerful.
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Getting help online can be difficult. People get angry at you, they don't understand your question, or the answers you get aren't right. What do you do? Watch this video and learn how to ask the right question in the right way to get the right results.

– Newsletter signup (with exclusive discounts): https://signup.iamtimcorey.com/ (Your email will be kept safe and you will not be bombarded with spam).
– Source code: https://leadmagnets.app/?ResourceInterfacesInCSharp
– Design pattern as referenced in the video – https://youtu.be/dhnsegiPXoo

0:00 – Introduction
1:06 – Introduction to the demo application
4:50 – Explanation of the problem: Inserting instances of different classes (product models) into a list (shopping cart)
7:54 – Creating an interface
12:53 – Implementation of the interface
20:29 – List of type interface
23:43 – Note on elements in the list of type "Interface": Access to a class member that is not included in the contract
(Interface)
25:07 – Review: User Interface Basics
26:48 – Class inheritance and interface
implementation
29:02 – Extracting the interface from a class
31:19 – Interface that implements another interface
34:54 – Access to a class member outside the original contract (interface) in the list of type "interface"
40:51 – The power of interfaces: adding a new class to your project, why you should use interfaces

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.