Sir, this explains inheritance Polymorphism: poly = many, morphism = forms If u override the 'accelerate' method then that is the best suitable example Example: class vehicle { accelerate(){ console.log("vroom vroom"); } } class Cat extends Vehicle { accelerate () { console.log(" meroom meroom"); } } (new Cat()).accelerate();
@CodeVenture719 күн бұрын
Yeah I had to keep it short in the screen and I removed that afterwards for that but I stupidly forgot to change the caption text polymorphism
@Dunkable19 күн бұрын
This article I'm looking at says you can't do it with variables, is that true? Just functions?
@einargs18 күн бұрын
While this doesn't directly involve polymorphism, subtyping -- i.e. a child class being assignable the type of the parent class -- is a kind of polymorphism.
@pawesokoowski129418 күн бұрын
@@CodeVenture7while complete source is not open, it is still very obvious that acceleration is done the cat way.
@Flutter-Pulse18 күн бұрын
@@Dunkable with OOP
@cingizhemidov699019 күн бұрын
inheritance in action
@borisdorofeev56026 күн бұрын
Catinhance?
@v2345217 күн бұрын
This is inheritance, not polymorphism
@dank_shiv16 күн бұрын
I didn't even read the title I was so sure it would be correct 😭
@CodeVenture711 күн бұрын
Yes check the pinned comment
@BN3TRUNN3R15 күн бұрын
I dont know how i got to code+cat videos but i wanna stay here forever.
@Abdullah-zd5rz17 күн бұрын
Best IT humor channel ever
@ІгорАлієв6 күн бұрын
Cat is stressed && waiting for revenge.
@starkeeper_youtube14 күн бұрын
Unironically explains inheritance better than some of my actual college programming classes
@Alkis0513 күн бұрын
Really? You think this is a more clear explanation than a standard one?
@llortaton28347 күн бұрын
@@Alkis05 I think it was a funny joke, but you are sooo autistic you missed it.
@sosis-s1k6 күн бұрын
😂 You're right
@rosalinamacarita01Күн бұрын
High schooler here, is it worth going for programming?
@Alkis05Күн бұрын
@@rosalinamacarita01 If you like programming, you should learn it even if you don't become a professional. It is just a useful skill in many fields. Basically any STEM field. Are you doing so many activities you have to priorize time? If the answer is no, and you like programming, just go for it.
@Skonp13 күн бұрын
"Yamaha FJR1300" ahh cat
@lolidkstudio18 күн бұрын
nice car
@constantinerafikov14 күн бұрын
Jokes aside the cat is stressed out, one should never do such things to a cat
@Deimos450016 күн бұрын
This is more an example of inheritance rather a polymorphism one. For the last it should have shown modifications like overrides in different classes.
@L0S7S0UL7 күн бұрын
Sir you where going 40 in a 30 kitten zone
@irctckumar50455 күн бұрын
Very Fast Pickup 🛻🛻 😂😂😂😂
@第2期ロシデレを楽しみです12 күн бұрын
'I am car' ahh cat
@rorumets11 күн бұрын
Cool 😂
@rishipahari15 күн бұрын
It passed the duck test.
@Lowkeychilldroid2 күн бұрын
Cool
@007Saad00715 күн бұрын
Change gear, engine started knocking .. 😑
@temong0long0544 күн бұрын
Car is ready!
@yep_987315 күн бұрын
That make my dog want to trap the cat 😂
@marufahmad438517 күн бұрын
What about (old Cat()).Brake()?
@patriciomoraga4595 күн бұрын
Que forma más gráfica de representarlo
@Stone_62416 күн бұрын
My first thought was (new Cat()).accelerate();
@m.ytechs13 күн бұрын
Bro inherited the wrong class😂😂😂
@fillixkid300515 күн бұрын
Whats with the lag😂😂😂
@lefteriszacharoullas694116 күн бұрын
I like this code have the tag python 🤦🤦🤦
@เนื้อหมาอยู่ในจาน15 күн бұрын
Why not
@infrakazos15 күн бұрын
@@เนื้อหมาอยู่ในจานits definitely not python
@เนื้อหมาอยู่ในจาน15 күн бұрын
@@infrakazos so what? I have no clue about languages other than python, and this code looks totally understandable to me.
@infrakazos15 күн бұрын
@@เนื้อหมาอยู่ในจาน its not python, so it shouldnt have python tag. just because you only know python and can recognise it doesnt mean it is python.
@เนื้อหมาอยู่ในจาน15 күн бұрын
@@infrakazos I also can recognize that you are gay. Means your nickname should have a #gay tag, but it isn't there, so...
@Basit-2319 күн бұрын
Real 😂😂😂😂😂
@BrownOrion-z1f13 күн бұрын
now thats top engineering
@mr.jacker395114 күн бұрын
Aeeeee bahi paap lagega, bata rah hu😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅
@CodeVenture714 күн бұрын
@@mr.jacker3951 😂
@MohanrajM-m6x16 күн бұрын
Class & console log??? 💀
@thefoxguy16 күн бұрын
javascript has classes tho-
@MohanrajM-m6x16 күн бұрын
@thefoxguy when's the last time that ever you've used js classes in production?
@thefoxguy16 күн бұрын
@@MohanrajM-m6x good point
@iriiv-k15 күн бұрын
@@MohanrajM-m6x Today, the Angular framework consists entirely of classes and decorators.
@MohanrajM-m6x15 күн бұрын
@@iriiv-k yeah, i forgot angular still uses class components & class structures, sorry my bad
@МихаилТретьяков-к3э16 күн бұрын
Hello, my name is car
@Fatali.Fataliyev14 күн бұрын
Funny 😆
@joneyabraham.s418313 күн бұрын
not bad!
@GabFerndz9 күн бұрын
var cat {car}
@iexist_nt15 күн бұрын
i love cars
@programming_code99235 күн бұрын
JAJAJAJAJAJA entendi perfect ❤ pero en JAVA esto es Herencia
@АртёмКутас-з8о14 күн бұрын
Our life consists of scripts😂
@RTBOSS13 күн бұрын
Lol😂
@PawanPrajapati-g5m12 күн бұрын
Is code kr ckakkr me java script vs code me run krvane lga 😂😂
@CodeVenture710 күн бұрын
Ayo
@skyrctechie17 күн бұрын
Ninja cat 😺
@kumarbanavathu77167 күн бұрын
🤣🤣🤣🤣🤣
@davejackson8815 күн бұрын
genius
@AndersonSantos-kb9kw5 күн бұрын
não acredito que entendi, já estou ficando preocupado
@proboiz_5015 күн бұрын
Now i know why its car not cat
@SayedNowshad-ri7rc15 күн бұрын
How cute 🥰🥺
@shaurabhsingh-e5x15 күн бұрын
Hurdle race ❤
@baileyajo4 күн бұрын
When did people start calling cars cats? Anyways, that engine sounds purrty
@Eternal_Edge697 күн бұрын
When I type Cat instead of Car
@abrarjahintokki717212 күн бұрын
please help me im watching a cat instead of bike 😂
@مرحبا6 күн бұрын
Man the barket after console.log should be in the next line, it's feel me something wrong here 🙂
@VitTrully7 күн бұрын
U ARE WRONG. THE CAT WILL ACCELERATE ONBIRTH SINCE YOU CREATE IT AND IMIDEATLY ACCELERATE
@LêĐức-c3g13 күн бұрын
Tính đa hình trong lập trình hướng đối tượng
@Swatou15 күн бұрын
我需要這輛車
@bas777ien7 күн бұрын
MYTHICAL PROGRAMMING PULL
@player_317 күн бұрын
Cat is car, also bike.
@adebayoglover15 күн бұрын
What the 🤣🤣🤣🤣
@damntrain514514 күн бұрын
Somebody tell lil bro what polymorphism is
@shakystability304014 күн бұрын
More like cat extends car
@ilyasakinqiyas944716 күн бұрын
car extend cat
@harshsonar934613 күн бұрын
Cateritance
@JohnKerbaugh17 күн бұрын
Explains the 2:00 a.m. zoomies.
@mayankbhaisora269913 күн бұрын
Cat extends Car
@bogdanivchenko372314 күн бұрын
Cat implements Car
@Mikumikku15 күн бұрын
I hate people who don’t put the braces in separate lines
@dizziedbliss14 күн бұрын
😂😂
@hoangvuminh643615 күн бұрын
Cat just inherited Vehicle, it didn't override the accelerate method so yeah this happens
@BurnerAccount101-ui4et17 күн бұрын
Cat engine
@glooop13914 күн бұрын
Sir, this is a car not a motorcycle
@todorpopov861313 күн бұрын
That’s inheritance. Polymorphism is something different.
@linhbui47986 күн бұрын
no,i think this is inheritance,not polymorphism
@darsandevs31616 күн бұрын
This is inheritance
@megal_dev15 күн бұрын
My cats reacted to this video
@dudscoconut16 күн бұрын
Catwasaki
@lol_hp6 күн бұрын
Многие пишут что это наследование, а не полиморфизм, на самом деле тут не много ошибся автор ему нужно было показать что класс vehicle работает одинаково как с кошкой, так и с собакой, попугаем или зайчиком, то есть каждый класс унаследовавший класс vehicle будет издовать vroom vroom
@Saixah5 сағат бұрын
Thats Inheritance
@yuva...18 күн бұрын
❤❤😢😅😂😂😂
@PhoenixRisingFromAshes4719 күн бұрын
You have violated Liskov Substitution principal. Cat can never inherit Vehicle, its an invalid IS A.
@princecassandreloicbakalab789319 күн бұрын
😂😂😂
@mrvoid109919 күн бұрын
Polymorpism is combination of overriding and dynamic dispatch. This code is incorrect.
@raphaeloberhummer507118 күн бұрын
You see that this code works, so it's not wrong
@happyducky987218 күн бұрын
It can be wrong and still do something
@raphaeloberhummer507118 күн бұрын
@@happyducky9872 yes, but it should do vrum vrum, and it does it, so the code is right
@OfficialDubEnderDragon13 күн бұрын
I thought haxe programming but is not
@lesdeuxpalmesgarage101119 күн бұрын
😂😂😂😂😂
@zbpsplay667317 күн бұрын
😂
@AndriiIvanchov19 күн бұрын
😂😂😂😂😂😂😂😂😂😂😂
@dhritimnsaikia631611 күн бұрын
Inheritance
@Vidgital766914 күн бұрын
That's inheritance
@MK69-us6 күн бұрын
That’s my cat that I lost a few months ago tf are doing maybe just let him be
@gamezone4315 күн бұрын
Where is the function with same name in child class otherwise its not polymorphism
@kilianlindberg16 күн бұрын
Python’s mixed with JavaScript, JavaScript with Java, and back; code wise it’s polymorphism (in many-forms) mixed up with inheritance. Although, the cat actually sounds like a motor bike - so +1up then. Anyhow, I hereby label this video productions intention as clickbait, collecting extra algorithmic boosts by comments like this one, while monetizing us poor developers with attention grabbing videos, we otherwise wouldn’t have seen, of fun cats. Realizing that’s about it… and… suddenly questioning if that is what the whole of media seem to intend.. Realizing I prefer being tricked by fun cat videos, of the more obvious kind. Hmm. So. Thanks for the opportunity to watch a fun cat.. and make an insight reflected in a comment like this very one 🎉😁
@fran201Dev13 күн бұрын
Y herencia
@justinliu778819 күн бұрын
Ah yes #python
@anneonyme738318 күн бұрын
Definitely not python but ok
@trinityy-717 күн бұрын
@@anneonyme7383its the tags for the video. the video creator made that mistake. thats what this comment is pointing out
@expensiveexpensive888617 күн бұрын
It's JavaScript
@netanelkomm563617 күн бұрын
@@anneonyme7383He's talking about the fact the video creator put a python hashtag in the video title. Stop being a m0r0n.
@captive867017 күн бұрын
Ah yes, console.log in Python
@observerI16 күн бұрын
Ringo Danyan
@enriquegarciagalvan604611 күн бұрын
class Cat extends Car {}
@stysan15 күн бұрын
car
@benjaminsteigerwald550816 күн бұрын
Motorcatsports
@stevestevov22246 күн бұрын
Translate this to c++, а то не понимаю
@mursuhillo24213 күн бұрын
xml is not a proper language, damnit
@HuTaoEdgy14 күн бұрын
Its a cat, not a toy
@xtreepvps17 күн бұрын
Car
@MachineCodes13 күн бұрын
Xddd
@lIllIIllIllIIlIl19 күн бұрын
(new Cat()).accelerate();
@shimotsuki9615 күн бұрын
I like it when you are adding a new function but you just print it first to see if its working 😂