inheritence

  Рет қаралды 432,398

CodeVenture

CodeVenture

Күн бұрын

Пікірлер: 177
@dineshbh3837
@dineshbh3837 19 күн бұрын
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();
@CodeVenture7
@CodeVenture7 19 күн бұрын
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
@Dunkable
@Dunkable 19 күн бұрын
This article I'm looking at says you can't do it with variables, is that true? Just functions?
@einargs
@einargs 18 күн бұрын
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.
@pawesokoowski1294
@pawesokoowski1294 18 күн бұрын
​​@@CodeVenture7while complete source is not open, it is still very obvious that acceleration is done the cat way.
@Flutter-Pulse
@Flutter-Pulse 18 күн бұрын
​@@Dunkable with OOP
@cingizhemidov6990
@cingizhemidov6990 19 күн бұрын
inheritance in action
@borisdorofeev5602
@borisdorofeev5602 6 күн бұрын
Catinhance?
@v23452
@v23452 17 күн бұрын
This is inheritance, not polymorphism
@dank_shiv
@dank_shiv 16 күн бұрын
I didn't even read the title I was so sure it would be correct 😭
@CodeVenture7
@CodeVenture7 11 күн бұрын
Yes check the pinned comment
@BN3TRUNN3R
@BN3TRUNN3R 15 күн бұрын
I dont know how i got to code+cat videos but i wanna stay here forever.
@Abdullah-zd5rz
@Abdullah-zd5rz 17 күн бұрын
Best IT humor channel ever
@ІгорАлієв
@ІгорАлієв 6 күн бұрын
Cat is stressed && waiting for revenge.
@starkeeper_youtube
@starkeeper_youtube 14 күн бұрын
Unironically explains inheritance better than some of my actual college programming classes
@Alkis05
@Alkis05 13 күн бұрын
Really? You think this is a more clear explanation than a standard one?
@llortaton2834
@llortaton2834 7 күн бұрын
@@Alkis05 I think it was a funny joke, but you are sooo autistic you missed it.
@sosis-s1k
@sosis-s1k 6 күн бұрын
😂 You're right
@rosalinamacarita01
@rosalinamacarita01 Күн бұрын
High schooler here, is it worth going for programming?
@Alkis05
@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.
@Skonp
@Skonp 13 күн бұрын
"Yamaha FJR1300" ahh cat
@lolidkstudio
@lolidkstudio 18 күн бұрын
nice car
@constantinerafikov
@constantinerafikov 14 күн бұрын
Jokes aside the cat is stressed out, one should never do such things to a cat
@Deimos4500
@Deimos4500 16 күн бұрын
This is more an example of inheritance rather a polymorphism one. For the last it should have shown modifications like overrides in different classes.
@L0S7S0UL
@L0S7S0UL 7 күн бұрын
Sir you where going 40 in a 30 kitten zone
@irctckumar5045
@irctckumar5045 5 күн бұрын
Very Fast Pickup 🛻🛻 😂😂😂😂
@第2期ロシデレを楽しみです
@第2期ロシデレを楽しみです 12 күн бұрын
'I am car' ahh cat
@rorumets
@rorumets 11 күн бұрын
Cool 😂
@rishipahari
@rishipahari 15 күн бұрын
It passed the duck test.
@Lowkeychilldroid
@Lowkeychilldroid 2 күн бұрын
Cool
@007Saad007
@007Saad007 15 күн бұрын
Change gear, engine started knocking .. 😑
@temong0long054
@temong0long054 4 күн бұрын
Car is ready!
@yep_9873
@yep_9873 15 күн бұрын
That make my dog want to trap the cat 😂
@marufahmad4385
@marufahmad4385 17 күн бұрын
What about (old Cat()).Brake()?
@patriciomoraga459
@patriciomoraga459 5 күн бұрын
Que forma más gráfica de representarlo
@Stone_624
@Stone_624 16 күн бұрын
My first thought was (new Cat()).accelerate();
@m.ytechs
@m.ytechs 13 күн бұрын
Bro inherited the wrong class😂😂😂
@fillixkid3005
@fillixkid3005 15 күн бұрын
Whats with the lag😂😂😂
@lefteriszacharoullas6941
@lefteriszacharoullas6941 16 күн бұрын
I like this code have the tag python 🤦🤦🤦
@เนื้อหมาอยู่ในจาน
@เนื้อหมาอยู่ในจาน 15 күн бұрын
Why not
@infrakazos
@infrakazos 15 күн бұрын
​@@เนื้อหมาอยู่ในจาน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.
@infrakazos
@infrakazos 15 күн бұрын
@@เนื้อหมาอยู่ในจาน 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-23
@Basit-23 19 күн бұрын
Real 😂😂😂😂😂
@BrownOrion-z1f
@BrownOrion-z1f 13 күн бұрын
now thats top engineering
@mr.jacker3951
@mr.jacker3951 14 күн бұрын
Aeeeee bahi paap lagega, bata rah hu😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅😅
@CodeVenture7
@CodeVenture7 14 күн бұрын
@@mr.jacker3951 😂
@MohanrajM-m6x
@MohanrajM-m6x 16 күн бұрын
Class & console log??? 💀
@thefoxguy
@thefoxguy 16 күн бұрын
javascript has classes tho-
@MohanrajM-m6x
@MohanrajM-m6x 16 күн бұрын
@thefoxguy when's the last time that ever you've used js classes in production?
@thefoxguy
@thefoxguy 16 күн бұрын
@@MohanrajM-m6x good point
@iriiv-k
@iriiv-k 15 күн бұрын
@@MohanrajM-m6x Today, the Angular framework consists entirely of classes and decorators.
@MohanrajM-m6x
@MohanrajM-m6x 15 күн бұрын
@@iriiv-k yeah, i forgot angular still uses class components & class structures, sorry my bad
@МихаилТретьяков-к3э
@МихаилТретьяков-к3э 16 күн бұрын
Hello, my name is car
@Fatali.Fataliyev
@Fatali.Fataliyev 14 күн бұрын
Funny 😆
@joneyabraham.s4183
@joneyabraham.s4183 13 күн бұрын
not bad!
@GabFerndz
@GabFerndz 9 күн бұрын
var cat {car}
@iexist_nt
@iexist_nt 15 күн бұрын
i love cars
@programming_code9923
@programming_code9923 5 күн бұрын
JAJAJAJAJAJA entendi perfect ❤ pero en JAVA esto es Herencia
@АртёмКутас-з8о
@АртёмКутас-з8о 14 күн бұрын
Our life consists of scripts😂
@RTBOSS
@RTBOSS 13 күн бұрын
Lol😂
@PawanPrajapati-g5m
@PawanPrajapati-g5m 12 күн бұрын
Is code kr ckakkr me java script vs code me run krvane lga 😂😂
@CodeVenture7
@CodeVenture7 10 күн бұрын
Ayo
@skyrctechie
@skyrctechie 17 күн бұрын
Ninja cat 😺
@kumarbanavathu7716
@kumarbanavathu7716 7 күн бұрын
🤣🤣🤣🤣🤣
@davejackson88
@davejackson88 15 күн бұрын
genius
@AndersonSantos-kb9kw
@AndersonSantos-kb9kw 5 күн бұрын
não acredito que entendi, já estou ficando preocupado
@proboiz_50
@proboiz_50 15 күн бұрын
Now i know why its car not cat
@SayedNowshad-ri7rc
@SayedNowshad-ri7rc 15 күн бұрын
How cute 🥰🥺
@shaurabhsingh-e5x
@shaurabhsingh-e5x 15 күн бұрын
Hurdle race ❤
@baileyajo
@baileyajo 4 күн бұрын
When did people start calling cars cats? Anyways, that engine sounds purrty
@Eternal_Edge69
@Eternal_Edge69 7 күн бұрын
When I type Cat instead of Car
@abrarjahintokki7172
@abrarjahintokki7172 12 күн бұрын
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 🙂
@VitTrully
@VitTrully 7 күн бұрын
U ARE WRONG. THE CAT WILL ACCELERATE ONBIRTH SINCE YOU CREATE IT AND IMIDEATLY ACCELERATE
@LêĐức-c3g
@LêĐức-c3g 13 күн бұрын
Tính đa hình trong lập trình hướng đối tượng
@Swatou
@Swatou 15 күн бұрын
我需要這輛車
@bas777ien
@bas777ien 7 күн бұрын
MYTHICAL PROGRAMMING PULL
@player_3
@player_3 17 күн бұрын
Cat is car, also bike.
@adebayoglover
@adebayoglover 15 күн бұрын
What the 🤣🤣🤣🤣
@damntrain5145
@damntrain5145 14 күн бұрын
Somebody tell lil bro what polymorphism is
@shakystability3040
@shakystability3040 14 күн бұрын
More like cat extends car
@ilyasakinqiyas9447
@ilyasakinqiyas9447 16 күн бұрын
car extend cat
@harshsonar9346
@harshsonar9346 13 күн бұрын
Cateritance
@JohnKerbaugh
@JohnKerbaugh 17 күн бұрын
Explains the 2:00 a.m. zoomies.
@mayankbhaisora2699
@mayankbhaisora2699 13 күн бұрын
Cat extends Car
@bogdanivchenko3723
@bogdanivchenko3723 14 күн бұрын
Cat implements Car
@Mikumikku
@Mikumikku 15 күн бұрын
I hate people who don’t put the braces in separate lines
@dizziedbliss
@dizziedbliss 14 күн бұрын
😂😂
@hoangvuminh6436
@hoangvuminh6436 15 күн бұрын
Cat just inherited Vehicle, it didn't override the accelerate method so yeah this happens
@BurnerAccount101-ui4et
@BurnerAccount101-ui4et 17 күн бұрын
Cat engine
@glooop139
@glooop139 14 күн бұрын
Sir, this is a car not a motorcycle
@todorpopov8613
@todorpopov8613 13 күн бұрын
That’s inheritance. Polymorphism is something different.
@linhbui4798
@linhbui4798 6 күн бұрын
no,i think this is inheritance,not polymorphism
@darsandevs316
@darsandevs316 16 күн бұрын
This is inheritance
@megal_dev
@megal_dev 15 күн бұрын
My cats reacted to this video
@dudscoconut
@dudscoconut 16 күн бұрын
Catwasaki
@lol_hp
@lol_hp 6 күн бұрын
Многие пишут что это наследование, а не полиморфизм, на самом деле тут не много ошибся автор ему нужно было показать что класс vehicle работает одинаково как с кошкой, так и с собакой, попугаем или зайчиком, то есть каждый класс унаследовавший класс vehicle будет издовать vroom vroom
@Saixah
@Saixah 5 сағат бұрын
Thats Inheritance
@yuva...
@yuva... 18 күн бұрын
❤❤😢😅😂😂😂
@PhoenixRisingFromAshes471
@PhoenixRisingFromAshes471 9 күн бұрын
You have violated Liskov Substitution principal. Cat can never inherit Vehicle, its an invalid IS A.
@princecassandreloicbakalab7893
@princecassandreloicbakalab7893 19 күн бұрын
😂😂😂
@mrvoid1099
@mrvoid1099 19 күн бұрын
Polymorpism is combination of overriding and dynamic dispatch. This code is incorrect.
@raphaeloberhummer5071
@raphaeloberhummer5071 18 күн бұрын
You see that this code works, so it's not wrong
@happyducky9872
@happyducky9872 18 күн бұрын
It can be wrong and still do something
@raphaeloberhummer5071
@raphaeloberhummer5071 18 күн бұрын
@@happyducky9872 yes, but it should do vrum vrum, and it does it, so the code is right
@OfficialDubEnderDragon
@OfficialDubEnderDragon 13 күн бұрын
I thought haxe programming but is not
@lesdeuxpalmesgarage1011
@lesdeuxpalmesgarage1011 19 күн бұрын
😂😂😂😂😂
@zbpsplay6673
@zbpsplay6673 17 күн бұрын
😂
@AndriiIvanchov
@AndriiIvanchov 19 күн бұрын
😂😂😂😂😂😂😂😂😂😂😂
@dhritimnsaikia6316
@dhritimnsaikia6316 11 күн бұрын
Inheritance
@Vidgital7669
@Vidgital7669 14 күн бұрын
That's inheritance
@MK69-us
@MK69-us 6 күн бұрын
That’s my cat that I lost a few months ago tf are doing maybe just let him be
@gamezone43
@gamezone43 15 күн бұрын
Where is the function with same name in child class otherwise its not polymorphism
@kilianlindberg
@kilianlindberg 16 күн бұрын
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 🎉😁
@fran201Dev
@fran201Dev 13 күн бұрын
Y herencia
@justinliu7788
@justinliu7788 19 күн бұрын
Ah yes #python
@anneonyme7383
@anneonyme7383 18 күн бұрын
Definitely not python but ok
@trinityy-7
@trinityy-7 17 күн бұрын
@@anneonyme7383its the tags for the video. the video creator made that mistake. thats what this comment is pointing out
@expensiveexpensive8886
@expensiveexpensive8886 17 күн бұрын
It's JavaScript
@netanelkomm5636
@netanelkomm5636 17 күн бұрын
@@anneonyme7383He's talking about the fact the video creator put a python hashtag in the video title. Stop being a m0r0n.
@captive8670
@captive8670 17 күн бұрын
Ah yes, console.log in Python
@observerI
@observerI 16 күн бұрын
Ringo Danyan
@enriquegarciagalvan6046
@enriquegarciagalvan6046 11 күн бұрын
class Cat extends Car {}
@stysan
@stysan 15 күн бұрын
car
@benjaminsteigerwald5508
@benjaminsteigerwald5508 16 күн бұрын
Motorcatsports
@stevestevov2224
@stevestevov2224 6 күн бұрын
Translate this to c++, а то не понимаю
@mursuhillo242
@mursuhillo242 13 күн бұрын
xml is not a proper language, damnit
@HuTaoEdgy
@HuTaoEdgy 14 күн бұрын
Its a cat, not a toy
@xtreepvps
@xtreepvps 17 күн бұрын
Car
@MachineCodes
@MachineCodes 13 күн бұрын
Xddd
@lIllIIllIllIIlIl
@lIllIIllIllIIlIl 19 күн бұрын
(new Cat()).accelerate();
@shimotsuki96
@shimotsuki96 15 күн бұрын
I like it when you are adding a new function but you just print it first to see if its working 😂
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
Who would pay $120 for a Raspberry Pi?
9:31
Jeff Geerling
Рет қаралды 284 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 2,3 МЛН
BachGPT is back: Can AI Compose Like the Greatest Musician of All Time?
14:06
Nobody & The Computer
Рет қаралды 29 М.
CES 2025 : The Craziest Tech I Found
14:34
Vegas Navigator
Рет қаралды 180 М.
ARTISTS BEWARE! UK AI Consultation is Coming for YOUR RIGHTS!
11:46
Friendly Neighborhood Artist
Рет қаралды 16 М.
Can I 100% Superliminal and Get a Refund?
23:36
Gronf
Рет қаралды 325 М.
17 weird new tech products at CES 2025 you need right now...
5:25
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН