Python 27 Classes and Self

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for the video. Still trying to wrap my head around this concept. As a novice programmer, I'm told that I need to learn this. I'm trying to use it in a real world program so that hopefully it'll sink in. I've been going through all your python video and really enjoy them. Thanks for your time!

Jeffrich
Автор

Nice video. I had to watch it a couple times for it to all make sense as this is my first exposure to classes. The video was done well, but when you created your objects, instead of naming the object Andrew, it may have been easier for me to wrap my mind around naming it object1 or something of that nature.
So I rewrote the code to reflect that.
object1 = Person ();
object1.set_name( " Andrew White" );
object.say_hello();

and then it all sank in :)
More good work John!!!

ViperOne
Автор

This one set in brain for me also, Thanks!

renersify
Автор

And I hope to see more about "self". It is not totally apparent what it means yet.... just kinda...

ViperOne
Автор

hey John i was wondering how you changed the "print" command to purple. Good vid!

weenaw
Автор

That's crazy... a whole 11 years ago. How old were you at this time?

weidup
Автор

So... why do you need " name_to_be_set_as" ? I don't get that one thing :)
and can you please try to explane again what does 'self" does? it is not completely clear...

sarutis