C# Programming Tutorial 19 - Creating Basic Classes, Methods, and Properties

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

You are seriously underrated may man. You are an amazing teacher

VengeWarlock_Gaming
Автор

The analogy of a class to the header column of a spreadsheet and instances as a data row below it encapsulates ( pun intended ) the concept wonderfully.

robertpardinas
Автор

this explained so much for me while i was struggling with these.

MrCruzor
Автор

Thanks bro, deserves a like and subscribe

mobilelegends-qjho
Автор

For classes I see some minor similarities to JavaScript yet it is different. It is a whole way different in creating classes. Also, I don't see the "this" key word? Does C# use the "this" key world like JavaScript? Or is that a JavaScript thing only?

LA_VIVLIA
Автор

Great video; it seems like you are learning C# while creating video's to teach others what you have learned, which is cool, I thought about doing that myself, I say this because you state that a field can only be accessed from the outside, but that is only true if it is private. a field can be accessed from the outside(of the class) if you change the access lever to public; but, to promote encapsulation you should keep the access level at private and create a public property to get and set it. The property example you gave involved an automatic property that has access to an unseen private backing field created by the compiler that only that property can access. You could however access a private field by placing that fields name inside of the property's get and set accessors.

Note: the main point in using a property is for encapsulation; if not, you could simply access a public field directly without all that extra baggage. In C++ I did something similar by using public functions to access a private member, but properties are a much cleaner way of doing this.

dougwarner
Автор

What kinds of jobs could you get with languages like c#, python or Visual Basic?

teaspells
visit shbcf.ru