Object-oriented Programming (OOP) [Pt 18] | C# for Beginners

  Рет қаралды 24,562

dotnet

dotnet

Күн бұрын

View full playlist: aka.ms/dotnet/beginnervideos/...
Set up C# in VS Code: aka.ms/dotnet/get-started/vscode
🏆Earn the C# Certification: aka.ms/csharp-certification
In this video, David and Scott explain how to model the world with Object Oriented Programming. Let's create person and pet objects, and declare what those people/pets will look like. Along the way, learn best practices on how to create your object.
Links:
.NET Beginner Videos: aka.ms/dotnetvideos
MS Learn: aka.ms/dotnet/beginnervideos/...
Blog: aka.ms/dotnet/blog
Twitter: aka.ms/dotnet/twitter
TikTok: aka.ms/dotnet/tiktok
Mastodon: aka.ms/dotnet/mastodon
LinkedIn: aka.ms/dotnet/linkedin
Facebook: aka.ms/dotnet/facebook
Docs: learn.microsoft.com/dotnet
Forums: aka.ms/dotnet/forums
🙋‍♀️Q&A: aka.ms/dotnet-qa
👨‍🎓Microsoft Learn: aka.ms/learndotnet
#dotnet #csharp

Пікірлер: 17
@la.minecraf
@la.minecraf 7 ай бұрын
These two men teach me a lot
@bilalbyte
@bilalbyte 5 ай бұрын
@dotnet team please continue this series
@DB42YT
@DB42YT 2 ай бұрын
Easier way to understand OOP than what I was taught.
@kvelez
@kvelez 7 ай бұрын
4:01 Classes and Namespaces 13:49 Class refactoring. var p = new Person("Kevin", "Velez", 19); var p2 = new Person("Mario", "Vasquez", 19); List list = [p, p2]; public class Person(string name, string lastname, int age) { public string _name { get; set; } public string _lastname { get; set; } public int _age { get; set; } }
@Ricebow11
@Ricebow11 18 күн бұрын
What would be the NEXT best playlist to watch after finishing "C# for Beginners"? I definitely learned a lot from those two awesome instructors.
@richardshi1896
@richardshi1896 7 ай бұрын
Great tutorial video
@kuje89
@kuje89 7 ай бұрын
Thank you!
@marcosphs
@marcosphs 7 ай бұрын
Congratulation 👋
@bryanpaderes8963
@bryanpaderes8963 6 ай бұрын
How to implement this primary constructor in a derived class if its base class has a constructor parameters? I tried this code but it doesn't work: public class Animal(string name, int age) { public string Name { get; } = name; public int Age { get; } = age; } public class Dog(string name, int age, string breed) : base(name, age) { public string Breed { get; } = breed; } Edit (this is now the new way): public class Animal(string name, int age) { public string Name { get; } = name; public int Age { get; } = age; } public class Dog(string name, int age, string breed) : Animal(name, age) { public string Breed { get; } = breed; } thanks this is great!
@boyboyboy-gn4sr
@boyboyboy-gn4sr Ай бұрын
16:47
@jjj-ke9mp
@jjj-ke9mp 6 ай бұрын
What’s the difference between public string First { get; } = firstname; public string First => firstname; public string First { get => firstname; } I know the result might be the same but I can’t see the difference 😢
@VivekGawande1
@VivekGawande1 5 ай бұрын
The first one sets a default value for the First property. The second one is a computed property, so it won't be stored in the object, it's calculated whenever we read the property. The last one I guess is similar to the first one
@jurycould4275
@jurycould4275 5 ай бұрын
@3:24 "This is a way to segre... segment" and @ 3:35 "For example, might be Fowler.People or Hanselman.People" ... freudian slip much? Muricans...
@maneshwar3468
@maneshwar3468 7 ай бұрын
Looks like copy of the Kotlin language syntax. 🙂 Java + Kotlin = C#
@antosha2224
@antosha2224 6 ай бұрын
No its Kotlin is copy of C#. C# was created in 2001 and Kotlin was created only in 2016 after 15 years of C# exising
@maneshwar3468
@maneshwar3468 6 ай бұрын
@@antosha2224 Nope. C# introduced many new features in version 12, those features ex, primary constructor, look similar to Kotlin Lang.
@antosha2224
@antosha2224 6 ай бұрын
​@@maneshwar3468 So what? Originaly Kotlin was inpired by C# and other languages. Some features was copied directly from C# . Here is the text from their oficial documentation in kotlin org / introduction : "Kotlin took inspiration from many programming languages, including (but not limited to) Java, Scala, C# and Groovy. ". You can go to Kotlin docs intrudaction and read this by yourself. So creator of Kotlin by himself says that Kotlin was inpired by C# and you says "NOPE" lol
LINQ Method Syntax vs Query [Pt 17] | C# for Beginners
7:57
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 56 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 9 МЛН
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 858 М.
Python OOP Tutorial 1: Classes and Instances
15:24
Corey Schafer
Рет қаралды 4,4 МЛН
GO - Factorial Program
2:15
ProgramGuru
Рет қаралды 5
Writing async/await from scratch in C# with Stephen Toub
1:06:02
Sorting and Searching Lists [Pt 14] | C# for Beginners
8:15
Classes & Objects | C# | Tutorial 25
13:25
Giraffe Academy
Рет қаралды 167 М.
Object-oriented Programming in 7 minutes | Mosh
7:34
Programming with Mosh
Рет қаралды 3,8 МЛН
Getters & Setters | C# | Tutorial 28
12:09
Giraffe Academy
Рет қаралды 190 М.
SSD с кулером и скоростью 1 ГБ/с
0:47
Rozetked
Рет қаралды 477 М.
Телефон в воде 🤯
0:28
FATA MORGANA
Рет қаралды 1,2 МЛН
Lid hologram 3d
0:32
LEDG
Рет қаралды 9 МЛН
cute mini iphone
0:34
승비니 Seungbini
Рет қаралды 5 МЛН
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 223 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,2 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 103 М.