Тёмный

Python Classes, Objects, Inheritance & Polymorphism for Beginners 

Dave Gray
Подписаться 341 тыс.
Просмотров 9 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@aravindhvijayanandan3010
@aravindhvijayanandan3010 11 месяцев назад
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 !!!
@muzhaffarhaydar7928
@muzhaffarhaydar7928 6 дней назад
thanks dave!
@JordanGopie
@JordanGopie Год назад
Love your stuff as usual Dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Thanks!
@deepatterson1894
@deepatterson1894 4 месяца назад
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.
@manoharsagunthalla9215
@manoharsagunthalla9215 3 месяца назад
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.
@ShukyPersky
@ShukyPersky 8 месяцев назад
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
@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.
@utinthein7274
@utinthein7274 Год назад
Thanks you, Sir.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
You are most welcome
@abhaydhiman1920
@abhaydhiman1920 Год назад
A one shot or playlist of videos on Java Script will be great ....! Love From India
@johnaweiss
@johnaweiss 8 месяцев назад
Your getter would be more helpful if it `returned` something, rather than `print` something. Properties typically return something, and don't do something.
@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 16 дней назад
Polymorphism?
Далее
Python Exception Handling Tutorial for Beginners
12:16
Avaz Oxun - Yangisidan bor
14:29
Просмотров 285 тыс.
How to Prepare for a Python Senior Developer Interview
13:38
Python abstract classes 👻
7:45
Просмотров 78 тыс.
Python Closures for Beginners | Python tutorial
19:32
Python inheritance 👪
7:19
Просмотров 82 тыс.
Python OOP Tutorial 1: Classes and Instances
15:24
Просмотров 4,5 млн