Master C# Interfaces in 12 Minutes - Beginner Tutorial

preview_player
Показать описание
🔥 Hey, Beginner programmer! And also you, Intermediate developer! You know what? You over there! Advanced developer! Get in here! We learnin' some Interfaces today!

We'll make sure to turn you into a true developer in no time!

Timestamps:
00:00 Introduction
00:15 What are we working with?
01:03 Creation of Interfaces
03:43 This one is for you!
04:13 Using Interfaces and polymorphism
07:20 Interfaces and dependency Injection
11:13 Thanks for watching!

Master C# Interfaces in 12 Minutes - Beginner Tutorial

So, what is C#?
C# (pronounced "See Sharp") is a modern, object-oriented, and type-safe programming language. C# enables developers to build many types of secure and robust applications that run in .NET. C# has its roots in the C family of languages and will be immediately familiar to C, C++, Java, and JavaScript programmers. This tour provides an overview of the major components of the language in C# 8 and earlier. If you want to explore the language through interactive examples, try the introduction to C# tutorials.
C# is an object-oriented, component-oriented programming language. C# provides language constructs to directly support these concepts, making C# a natural language in which to create and use software components. Since its origin, C# has added features to support new workloads and emerging software design practices. At its core, C# is an object-oriented language. You define types and their behavior.

And what are interfaces?
An interface contains definitions for a group of related functionalities that a non-abstract class or a struct must implement. An interface may define static methods, which must have an implementation. An interface may define a default implementation for members. An interface may not declare instance data such as fields, auto-implemented properties, or property-like events.

By using interfaces, you can, for example, include behavior from multiple sources in a class. That capability is important in C# because the language doesn't support multiple inheritance of classes. In addition, you must use an interface if you want to simulate inheritance for structs, because they can't actually inherit from another struct or class.

To learn more, make sure to watch the video, and we promise you that you'll become a better developer by the end of the video! Have fun!

And thank you LAKEY INSPIRED for these amazing songs that we use in all our videos! @LAKEYINSPIRED

#csharp #coding #tutorial #learn #microsoft #net #interfaces

TAGS
c#,.net,c-sharp,csharp,programming,visual studio,c sharp,learn c#,c# programming,c# tutorial,c# for beginners,learn c# programming,c# course,tutorial,coding,.net core,unity,class,code,object oriented programming,oop,course,tip,development,interface,unity3d,inheritance,beginner,basics,classes,interfaces,beginners,c# interfaces beginner tutorial,c# interface tutorial,c# interfaces,interfaces in c#,c# interface,what is interface in c#

TutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.

Рекомендации по теме
Комментарии
Автор

try getting used to the new C# features that can make your code more cleaner,
for instance : Cat cat = new Cat(); can simply turn into Cat cat = new();
in this case it may not make a big difference, but in other cases where the line is too long such as :
ObservableCollection< someLongClassNameModel > financeSats = new ObservableCollection< someLongClassNameModel >();
in this case shortening this by using new(); can make the code more cleaner with less typing overall.

DoctorMGL
Автор

Amazing and a professional explanation, thank you !!!

tzurymaster
Автор

Thank you, I think i finally understand interfaces ^__^

FrigoltGaming
Автор

I remember coming to Java years ago, asking: where's my function pointer. I was told that there was none; but I could write an interface with a method header and then pass in an anonymous class instance which implemented that interface. I was in complete shock! Five years later: Java now had "functional interfaces" - I'm sure that is a Freudian slip of sorts. Yeah, you can now pass a method to a method in Java... OMG... Not that I care: I've found Nim, and gods willing: I'll never code a line of Java ever again!

megetmorsomt
Автор

Is there no better way than a list/ foreach loop? Doesnt sound very efficient tho that should work and tbf i can't find anything else.

jfkzbdjforfuelzjdisoz
Автор

Excellent video. People complaining for the "jumpings", please go to a beginner guide first.

afgdfdgdfddf
Автор

Too much jumping around, hard to follow the code.

zanngoc