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.
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.
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???
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.
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.
I love how you explained all 3 approaches and mentioned which one is the best practice!
This is the clean and clarity explanation in all over the youtube
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.
I like the way you explain things, Keen to watch your oop stuff!!! Hope you continue the journey.
super helpful and cleared up any misconceptions I had from other videos which didn't show the differences thank you!
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
Best explanation ❤
2022: Handy shortcuts are using prop and propfull
Great tutorial!
do you know how to make propfull for my variables, variables that i have been created before
can someone please explain why accessing fields the first way is bad or wrong?
do you know how to make propfull for my variables, variables that i have been created before
Excellent!!
great series, thanks again
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???
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.
I'm working on a code for make and model in c#. Opp and tdd exercise
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
Makes sense man
loved it thanks alot
Thanks for showing what the shorthand is actually doing here.
6:08 6:08
10:57