No video

C#: Static vs Non-Static: SoloLearn Connar's Static Member Question

  Рет қаралды 2,834

Tom McCurdy

Tom McCurdy

Күн бұрын

Ever confused on the difference between Static and Non-Static Classes and Methods? This video covers some of the basics from the perspective of someone who is learning the language.
Code from Video:
1st Part (Sassy/Person)
code.sololearn...
2nd Part (Static Member Example Code)
code.sololearn...
Note: As I'm still learning C# I may not have all the terms exactly correct and appreciate any corrections but hopefully the general idea makes sense to viewers.

Пікірлер: 9
@coopalooper
@coopalooper 2 жыл бұрын
Thank you so much for this. Very helpful explanation as I'm just learning this through SoloLearn.
@alinapostol2230
@alinapostol2230 3 жыл бұрын
Great explanation, thanks a lot!!
@richodainino
@richodainino 7 жыл бұрын
great explanation!
@blank9567
@blank9567 6 жыл бұрын
Very useful explanation, although the yomamma method wasn´t the most creative example to use :D
@gil5233
@gil5233 5 жыл бұрын
Is there any syntax to make these line more short? Is there any way to make something static without using the static keyword? this is very long syntax and I don't like it at all :( .. My logic say to use static but it looks so long and ugly.
@Layarion
@Layarion 7 жыл бұрын
the lesson didn't explain what the difference between const and static was?
@blank9567
@blank9567 6 жыл бұрын
int const is a monotonically value you won´t change with methods or object creation like pi for math operations. Or the 1 in the following math function: f(x) = x² + 1 And static variable is like a instance on itself. If you change the variable it will change everywhere not just for one object.
@mr.p215
@mr.p215 3 жыл бұрын
@@blank9567 I know it's been 3 years since you wrote this, but what I got is that const is final and static in one?
@Layarion
@Layarion 7 жыл бұрын
for the love of god, at full volume i have a hard time hearing you. next time, increase the gain.
C#: Very Basic Indexers Example + Sample Code
11:26
Tom McCurdy
Рет қаралды 1,9 М.
C#: Basic Class with Static and Non-Static Properties
9:07
Tom McCurdy
Рет қаралды 1,5 М.
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 27 МЛН
C# Properties: Why use "get" and "set"
14:53
Tom McCurdy
Рет қаралды 66 М.
C#: SoloLearn - Constructors
5:36
Tom McCurdy
Рет қаралды 1,3 М.
C#: Polymorphism - virtual/override
15:29
Tom McCurdy
Рет қаралды 1,3 М.
C#: Creating a Dynamic Indexer (CSharp)
13:27
Tom McCurdy
Рет қаралды 247
Raspberry Pi - Hello World in: Python/Bash/C++
7:07
Tom McCurdy
Рет қаралды 22 М.
BrianSullivan
5:07
Tom McCurdy
Рет қаралды 42
SoSick
5:20
Tom McCurdy
Рет қаралды 62