C# Tutorial: Properties, Getters and Setters

  Рет қаралды 26,320

Ian Schoenrock

Ian Schoenrock

4 жыл бұрын

In this lesson I go over properties, getters and setters, and how to use them.

Пікірлер: 24
@binjozoken6055
@binjozoken6055 2 жыл бұрын
That was a great explanation. 1) You showed the wrong way(technically) of accessing fields from another class. 2) You showed the old way. 3) You showed the right way. 4) You showed the best way. Finally, C# getters and setters have become demystified. Thanks a ton for this.
@mohamedabdelaal8582
@mohamedabdelaal8582 3 жыл бұрын
I love how you explained all 3 approaches and mentioned which one is the best practice!
@ryangoods7949
@ryangoods7949 17 күн бұрын
Thanks for this, coming from C++ I was using the second method or the 'old way' which is why I looked for a video about getters and setters
@saitejapala3208
@saitejapala3208 7 ай бұрын
This is the clean and clarity explanation in all over the youtube
@maxospovat8959
@maxospovat8959 2 жыл бұрын
super helpful and cleared up any misconceptions I had from other videos which didn't show the differences thank you!
@codecakeee
@codecakeee 2 жыл бұрын
I like the way you explain things, Keen to watch your oop stuff!!! Hope you continue the journey.
@joehiker8114
@joehiker8114 Жыл бұрын
Thank you, i have been trying to get my head round {get, set} for so long. I figured it was something like this, but had never actually seen it explained.
@geodimi7742
@geodimi7742 2 жыл бұрын
great series, thanks again
@BlobifyYT
@BlobifyYT 3 ай бұрын
can someone please explain why accessing fields the first way is bad or wrong?
@Nocturnes1984
@Nocturnes1984 Жыл бұрын
2022: Handy shortcuts are using prop and propfull Great tutorial!
@NPC_YOUTUBE_USER
@NPC_YOUTUBE_USER Жыл бұрын
do you know how to make propfull for my variables, variables that i have been created before
@lucasferreira8229
@lucasferreira8229 Жыл бұрын
Excellent!!
@ahtionpc4364
@ahtionpc4364 3 жыл бұрын
loved it thanks alot
@user-ig2kn8em3p
@user-ig2kn8em3p 2 ай бұрын
Makes sense man
@mindurownbussines
@mindurownbussines 3 жыл бұрын
Thanks
@joebrooks3638
@joebrooks3638 3 жыл бұрын
I'm working on a code for make and model in c#. Opp and tdd exercise
@NPC_YOUTUBE_USER
@NPC_YOUTUBE_USER Жыл бұрын
do you know how to make propfull for my variables, variables that i have been created before
@ichig085
@ichig085 3 жыл бұрын
I'm new to coding and I'm learning C#. I have Visual Studio 2019 on my Mac and when I run a console program like Console.Write("Hello World") it displays the output within VS instead of launching terminal on the Mac like yours is doing here. How can I make mine display the outputs in terminal???
@subliminalcastillo2126
@subliminalcastillo2126 3 жыл бұрын
That looks as if it would be a Build/Compile issue, as in you are currently building/compiling the output to the VS client. Try messing around with the build button (the drop down arrow on the right side of it) and see if you can select Mac OSx terminal from there. I don't know anything about Mac, and I can hardly say I know anything about Visual Studio, but I figure it's worth a try. More often than not, though, terminal cannot support builds from VS, hence why it defaults to VS anyway.
@paulvarshan5419
@paulvarshan5419 15 күн бұрын
6:08 6:08 10:57
@mahmoudelbrolosy5536
@mahmoudelbrolosy5536 3 жыл бұрын
i did not understand it from alot of Arabic language but i understand it from you very well my first language is not English :D thank you
@orioncallaghan2659
@orioncallaghan2659 Жыл бұрын
Thanks for showing what the shorthand is actually doing here.
C# Tutorial: Constructors
3:57
Ian Schoenrock
Рет қаралды 2,7 М.
C# Properties: Why use "get" and "set"
14:53
Tom McCurdy
Рет қаралды 66 М.
100❤️
00:19
MY💝No War🤝
Рет қаралды 22 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 13 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 29 МЛН
Русалка
01:00
История одного вокалиста
Рет қаралды 6 МЛН
Getters & Setters | C# | Tutorial 28
12:09
Giraffe Academy
Рет қаралды 191 М.
C# Tutorial: Classes and Objects
11:37
Ian Schoenrock
Рет қаралды 5 М.
Properties vs. Fields in C#
11:13
Elias Explains
Рет қаралды 8 М.
C# getters & setters 🔒
4:06
Bro Code
Рет қаралды 143 М.
C# Tutorial: Functions and Return Types
10:30
Ian Schoenrock
Рет қаралды 6 М.
THIS Is How You Should Be Making Getters & Setters In Python
7:32
C# Properties Tutorial - Eigenschaften mit get und set
13:41
Coding mit Jannick
Рет қаралды 6 М.
Getters and Setters Java Tutorial #84
14:12
Alex Lee
Рет қаралды 491 М.
Learn C# for beginners: 54 -  Get and Set Methods
16:44
Jesse Dietrichson
Рет қаралды 30 М.
C# Tutorial for Beginners 23 : Classes Part 3 Getters & Setters
13:30
JackedProgrammer
Рет қаралды 1,4 М.
100❤️
00:19
MY💝No War🤝
Рет қаралды 22 МЛН