Python Classes, Objects, Inheritance & Polymorphism for Beginners

  Рет қаралды 11,552

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 17
@aravindhvijayanandan3010
@aravindhvijayanandan3010 Жыл бұрын
Amazing !!! Just began my journey into Python programming. Even though some these concepts flew over the head, really enjoyed your explanation. Like and subs from India !!!
@ShukyPersky
@ShukyPersky 11 ай бұрын
Thanks for the video. I have a comment on the polymorphism portion of the video. It is NOT polymorphism though it aligns with "many forms" meaning. The polymorphism demonstration in the video has nothing to do with polymorphism, It is purely typecast (and has to do with the fact that Python is weak-type/dynamic-type language) which means that the type of a variable is derived from the type of the value it refers to The below explains what you demonstrated: a = 7 # a refers an int type object a = 7.0 # a refers a float type object polymorphism means that a variable that refers an object of certain type can refer another type (like in C++ where a pointer to base class type can point to derived class type either). but this can not take place in Python, as the interpreter changes type of a variable according to the type of the data that variable refers to Due to the dynamic-type nature of Python, I'm afraid that Python has no polymorphism though so wrongly claimed
@JordanGopie
@JordanGopie Жыл бұрын
Love your stuff as usual Dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thanks!
@deepatterson1894
@deepatterson1894 7 ай бұрын
I am still working through lessons, was stuck for a long time on the arcade lesson, which I think was really cool to test us on. I had to go back and make sure I really understood what I was doing. I made my own rps style, same code but did a lot more variations with fstring's and emojis. Though I did a lot of it correctly on the guess number game I was still blown away with differences in your code. I had to go back and try look at some of those lessons. I am very slow at this. I am not planning a career but a making a personalized app. I don't think it is going to be a very complex program but still have a lot of learning to do before I can start on that. Oh yah my arcade didn't work correctly because I had a return to game function where it should have just been return game_blabla without the (). I thought I was never going to find the problem. I want to say it was RPS code where the issue was, been a few days since I found the issue.
@muzhaffarhaydar7928
@muzhaffarhaydar7928 2 ай бұрын
thanks dave!
@manoharsagunthalla9215
@manoharsagunthalla9215 5 ай бұрын
Your explanations are wonderful! when we inherit the class we add one parameter in the derived class(say faa_id in the Airplane class). but you have not explained how to display that added parameter when we invoke the model. will you please explain how to display that too.
@utinthein7274
@utinthein7274 Жыл бұрын
Thanks you, Sir.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You are most welcome
@Nihal0522
@Nihal0522 Жыл бұрын
3) Hi, Sir my question is how many topic you will cover in upcoming days? Or how many days it will take? Actually my exam is coming in upcoming next month.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I cover one Python topic per week right now. There are likely at least 6 more videos in this series.
@johnaweiss
@johnaweiss 11 ай бұрын
Your getter would be more helpful if it `returned` something, rather than `print` something. Properties typically return something, and don't do something.
@abhaydhiman1920
@abhaydhiman1920 Жыл бұрын
A one shot or playlist of videos on Java Script will be great ....! Love From India
@tomjones8293
@tomjones8293 Жыл бұрын
Nice content and learner but Python does NOT have Polymorphism concept in OOP sense as we know it e.g like in Java using overloading , overriding methods because Python is DYNAMIC language . your "polymorphism" here is according to Cambridge dictionary not in programming sense :) hope this helps
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Many Python resources cover polymorphism. I'm doing the same here. It's not "my polymorphism".
@tomjones8293
@tomjones8293 Жыл бұрын
@@DaveGrayTeachesCode I see what you mean now I get it thanks
@prasad_yt
@prasad_yt 3 ай бұрын
Polymorphism?
Python Exception Handling Tutorial for Beginners
12:16
Dave Gray
Рет қаралды 7 М.
Python OOP (Object-Oriented Programming) Project for Beginners
30:19
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
The Ultimate Guide to Writing Classes in Python
25:39
ArjanCodes
Рет қаралды 121 М.
Python OOP Tutorial 4: Inheritance - Creating Subclasses
19:40
Corey Schafer
Рет қаралды 1,3 МЛН
Avoid These BAD Practices in Python OOP
24:42
ArjanCodes
Рет қаралды 78 М.
OOP Class Inheritance and Private Class Members - Python for Beginners!
16:12
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,4 МЛН
Object-Oriented Programming is Bad
44:35
Brian Will
Рет қаралды 2,3 МЛН
Why You Should Think Twice Before Using Returns in Python
21:27
ArjanCodes
Рет қаралды 40 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40