What is a Class vs What is an Object in Programming?

preview_player
Показать описание
---------------------------
Classes and objects - explained SIMPLY.
Рекомендации по теме
Комментарии
Автор

This was very well explained. Thank you for posting this. You could not have been any more clearer. A lot of people involved in computer programming are terrible at explaining things to beginners. They could make making a cup of tea sound complicated!

Stevethesearcher
Автор

This is one of the more difficult concepts to teach to new programmers. This is a fantastic explanation. Well done.

shawndeprey
Автор

I dont know what it is about these videos, maybe it's the crappy drawings, or the way he explains stuff, but I feel like i've learned more in the past 3 hours than I have in the past year trying to learn programming. Thanks! Honestly man, you should monetize these videos. I'd be happy to watch a video and put some money in your pocket. Don't up the production quality at all, keep the videos coming just like this, because I tell you what, IT WORKS!

jont
Автор

Mind. Blown. Wow. This was so perfect. I am a visual learner with a low-level imaginative though process. While the drawings were pretty terrible, I was able to create my own mental variants in realtime based on listening comprehension. I've looked up so many articles and forum posts, yet felt I could not grasp the basic concept. I found them too wordy & the out-of-tune voice of the author over-complicated a simple, definituve concept. Your analogy was perfect: brief, evenand concise. Thank you. Adding this to my playlist.

SubterraneanChick
Автор

Wow, thanks.

Took my Intro to Programming professor 45 minutes to explain what an object and a class is, and I walked out of the lecture more confused than when I walked in. You took 4 minutes and explained it better. Why do teachers insist on making things complicated?

FIDEL_CASHFLOW_
Автор

Amazing and I love the humour. Thank you

timbradshaw
Автор

You explain things using concepts people already understand, e.g., blueprints and objects therefrom. Good job. It would be easier to explain tax law in terms of bicycles, which sounds crazy, but people already understand bicycles, so they have a concept they understand that can be used as a basis to understand an unknown concept.

rwewrwew
Автор

Thank you. The blueprint analogy was very helpful.

nonameneeded
Автор

dude.... I've been trying to understand this since summer of 2022 in my class of Python, i never understood this at all and only passed the class because the final was open book, thank you!!! it took a little elbow grease on my part and extra time to get it!

christophersparacino
Автор

So, class is a fill-up form and objects are the details filled by multiple individuals.

subeg
Автор

Really man awesome explanation....I have watched many coding videos but the way you explained it is something i will never forget my whole life. Hats off

xstranglerdoofus
Автор

I appreciate the simplicity of the explanation! KUDOS!!!

righteousdivine
Автор

I was just thinking about this question and just watched a bunch of videos in this concept but it remained vague to me but this video just cleared this concept . Thanks a Lot!

hafsabatool
Автор

Brilliant explanation. So well explained. Literally struggled with this for years and have grasped it like never before.

vasantnilkund
Автор

so a class is bascially a storage for methods meant to be executed later?

dampish
Автор

So... in your analogy, that "fire" action by the end, would it be a method?
(thanks for the video, well explained :)

PauJuanes
Автор

Good explanation! I think the word you are looking for is analogous!

MyselfM
Автор

When you add more code in the class does it update every object related?

reyjeep
Автор

Thanks for making this video it helped me understand the distinction!!

willh
Автор

I work with C so my understanding is that a class is just a struct that can use struct-specific functions? And an object is just an instance of that struct?

So basically, would this:

typedef struct{
int a, b, c;}num;
void add(num* numbers)
{numbers->c = numbers->a + numbers->b};

num numbers;
numbers.a = 1; numbers.b = 2;
add(numbers);


Be the same as this?

class num{
int a, b, c;
function add(num){
num.c = num.a + num.b;
}
}
num number;
number.a = 1; number.b = 2;

Just making sure I got this right.

puppergump