What is a Variable? (C# vs Python)

preview_player
Показать описание
Cast a data type, assign a value to it, & you have a Variable!

Art used in this video in part made by freepik, & Vector Market

Please follow me on social networks:

REMEMBER TO ALWAYS FEED YOUR CURIOSITY
Рекомендации по теме
Комментарии
Автор

In C# you can convert variables using the ConvertTo() function though the types you can switch between is limited unless you go through some hoops. Such as converting a string to an Int, an int to a float, and in most casses to turn any variable to a bool just type == to start comparisons.

Also side note unless specified all variables are private by default so if you run into problems of trying to extract a variable to another method try adding Public or [SerializedField] to the variable type depending if you want it to be readwrite or read only another option is => {get, set}, {get, private set} and so on.

DeathxStrike
Автор

I need to find a way to automatically give you a thumbs up on all new videos. :)

elgabacho
Автор

I've started to learn coding in C# 'bout a month... THIS IS A GOLD MINE!

SenseiYasir
Автор

Did you tube make some of your unlisted vids listed?

harstar
Автор

OMG Jabrils you ate my subscription feed!

technobabble
Автор

I think that this lesson may have been placed out of order. You have this placed after already having classes on defining each variable.

sixdsix
Автор

Interpreted language doesn't mean anything about that if language is statically typed or dynamically. When you have Interpreted language it just means that when you run the code it's proccessed (to machine code) in rutime and when you have compiled language it means that the code is first proccessed and runs after.

KillerRW
Автор

i learned more in this video than anything else

samuraipanda
Автор

Can someone explain me why is a "f" after the float 7.77f?

marcospinto
Автор

So i run the program and found even if dizzy = true damage is going be 6 because was typed last and hurt and flashing is run frist

marcospinto
Автор

Some pretty incorrect verbage early on, but otherwise good.

AaronLoes
Автор

So, long story short.. I was bored one night and thinking a little TOO much until I stumbled upon your video “All my life I was told programming...” you know that video.. anyways. I’m 23 stil undecided on what I want to do with my life. I watched the video and I was INSTANTLY hooked. So, like any other person hooked on a topic.. I started watching videos on coding... the introduction to coding.. how to code... but, everything was just floating over my head. I wasn’t really understanding what I was watching, tbh. I wanted to give up. But, I know I’m smart.. smarter than average. I took advanced classes growing up. I was always “smarter” than the average but I just scraped by school because of the simple fact, I HATED school. Ok, maybe that’s a strong way of saying it but I didn’t like school. Like, AT All. Anyways, fast foward a couple years. I’m working a dead end job, had a beautiful baby girl.. and just been kinda lost at to what to do with my life until I stumbled upon... You. I can finally say I’m starting to understand how al this works. I’m not gonna give up, not this time. I’m going to be a programmer & that’s all because of you and your inspirational videos that keep me HOOKED. Keep doing what you’re doing, bro... you’re changing the direction of people’s lives in just 10 minutes. And, quite frankly that’s fucking awesome!😅 btw, I’m so happy I’m FINALLY STARTING TO UNDERSTAND THIS! IT TOOK ABOUT A WEEK

theawesome
Автор

spamming videos is a good way to get people unsubscribed so they can actually find other videos

Qornv