No video

Java inheritance 👪

  Рет қаралды 257,529

Bro Code

Bro Code

Күн бұрын

Пікірлер: 291
@BroCodez
@BroCodez 3 жыл бұрын
//*************************************** public class Main { public static void main(String[] args) { // inheritance = the process where one class acquires, // the attributes and methods of another. Car car = new Car(); car.go(); Bicycle bike = new Bicycle(); car.go(); bike.stop(); System.out.println(car.doors); System.out.println(bike.pedals); } } //*************************************** public class Vehicle{ double speed; void go(){ System.out.println("This vehicle is moving"); } void stop(){ System.out.println("This vehicle is stopped"); } } //*************************************** public class Car extends Vehicle{ int wheels = 4; int door = 4; } //*************************************** public class Bicycle extends Vehicle{ int wheels = 2; int pedals = 2; } //***************************************
@matinmonshizadeh
@matinmonshizadeh 2 жыл бұрын
Bro in Vehicle class you use 2 methods name go :) I think one of them is Stop
@patrickstar8585
@patrickstar8585 2 жыл бұрын
you repeated the same method (& arguments) for the Vehicle class
@shyam.upadhyay
@shyam.upadhyay 2 жыл бұрын
Bro inherited awesome teaching skills from parent class.
@urimsuh
@urimsuh 2 жыл бұрын
*cough cough* no.
@hamzawarsi1834
@hamzawarsi1834 2 жыл бұрын
@@urimsuh why
@tpkowastaken
@tpkowastaken Жыл бұрын
lol
@marcoslightspeed5517
@marcoslightspeed5517 Жыл бұрын
used 3 classes for a first example lol
@dodgevanniel01
@dodgevanniel01 5 ай бұрын
@@marcoslightspeed5517 it gets way more difficult than this, its good he's showing you guys now so that you don't struggle when you actually have to use a lot of classes( which is always especially considering the topic inheritance)
@user-ux9kj4tc5p
@user-ux9kj4tc5p 6 ай бұрын
You are hands down the best code teacher on KZfaq.
@hanac5586
@hanac5586 3 жыл бұрын
Clear and straight to the point. Thank you
@cosecE
@cosecE 3 жыл бұрын
you have no idea how better this video made me feel thank you so much college been really overwhelming so far
@theBATfamiliar
@theBATfamiliar 3 ай бұрын
beautifully explained I really appreciate the turorial, thanks!
@satvikraval3571
@satvikraval3571 Жыл бұрын
Thank you Bro. No confusion, straight to the point, no BS
@BinsiAgone
@BinsiAgone Жыл бұрын
I spent much time to understand this program but once watching your video made it very simple for me. Thank you so much for this video.
@pavelkvasnicka6856
@pavelkvasnicka6856 Жыл бұрын
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@user-lw5kj3gu8p
@user-lw5kj3gu8p 14 сағат бұрын
You probably the best teacher 🔥
@liliacfury
@liliacfury 3 жыл бұрын
Tysm for these videos! I love learning how to code but had to drop my Java class to make room for a period of basketball. Now I can do both :)
@liliacfury
@liliacfury 3 жыл бұрын
@Milan Walker i’ve tried it. didn’t work.
@100rats2
@100rats2 3 жыл бұрын
Thanks for making it short and having nothing useless
@professionalaveragekid
@professionalaveragekid 2 ай бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@bernardcyrus8189
@bernardcyrus8189 Жыл бұрын
Prayers answered! Most straight forward explanation I’ve seen!
@bk-entertainz7081
@bk-entertainz7081 2 жыл бұрын
You made this super simple to understand. Thank you.
@vancelery3475
@vancelery3475 2 жыл бұрын
amazing, thank you, so i want to review what i have learned from your tutotiral, a subclass inherits all instance variables and methods from the superclass without redeclaring them in the subclass. we can also add extra instance variables or methods that are different from the superclass. In order to achieve inheritance, the key word extends is used in the class header of the subclass with the name of the super class.
@BroCodez
@BroCodez 2 жыл бұрын
you got it
@seabrin
@seabrin 11 ай бұрын
Your 6-minute video made the bootcamp LMS content much easier to understand. Much appreciated!
@sujayirrinki4915
@sujayirrinki4915 7 ай бұрын
This video taught me that you need to extend the class itself if you want that subclasses objects to be able to call the method.
@snickered
@snickered 3 ай бұрын
thx brah... your Java series is legit
@play-cu5tv
@play-cu5tv 2 жыл бұрын
best tutorial I found Thank you!. You got a new Subscriber '
@ivosesugh871
@ivosesugh871 Жыл бұрын
Bro just out here saving lives and time. Thanks Bro
@karlodinn5426
@karlodinn5426 5 ай бұрын
Great Explanation as Always
@UniqueCorner14
@UniqueCorner14 23 күн бұрын
teaching was straight to the point bro code!
@charliebryant1987
@charliebryant1987 4 ай бұрын
Thank you, can't wait to use this to start my own business
@aniedaniel3799
@aniedaniel3799 8 ай бұрын
Awesome! Incredibly clear, unlike my teacher :(
@silasbrailey2445
@silasbrailey2445 6 ай бұрын
This was great. My professor is making it his life's work to make sure I dont understand inheritance.
@mustafaalsais7901
@mustafaalsais7901 2 жыл бұрын
You made it extremely easy to understand. Thank you man
@jason.fenstermaker
@jason.fenstermaker 4 ай бұрын
Liked and subscribed, great stuff man your content is very helpful
@mattmjlg5053
@mattmjlg5053 Жыл бұрын
Damn nobody wanted to get straight to the point But you are a very awesome teacher I got a find out more content from you
@abdulrenishr
@abdulrenishr Жыл бұрын
Nice tutorials.. keep on Bring all kinds of java sessions as animated 5 to 10 min clips or a 20 - 40 min big sessions but fundamental and example
@lucreatiaalexander9476
@lucreatiaalexander9476 10 ай бұрын
Thank you so much for this tutorial!! It was very comprehensive and helpful.
@jaywest1593
@jaywest1593 2 ай бұрын
Good video. Thanks for the applied example
@jazielgarcia8057
@jazielgarcia8057 11 ай бұрын
thanks for making it so easy to understand, awesome video, no more neither less information of what i needed
@albertoam2
@albertoam2 Жыл бұрын
Thanks for this, it has been very easy to grasp the concept with your explanation
@revanthk61
@revanthk61 3 жыл бұрын
Impressed by your teaching skills.
@kaushikkundu
@kaushikkundu Жыл бұрын
Clean teaching... underrated channel bro
@juanestebanparraparra8531
@juanestebanparraparra8531 2 жыл бұрын
Your tutorials are the best there are!
@jasontilford4068
@jasontilford4068 6 ай бұрын
Great straight forward explanation. Thank you!
@yasina63
@yasina63 2 жыл бұрын
Your teaching way is very good. Keep it up. Watching from Ethiopia
@arunnteam1901
@arunnteam1901 Жыл бұрын
bro thank u best tutorial on thye internet
@eprice000
@eprice000 Жыл бұрын
Thank you! I enjoyed the explanation of inheritance in just a short video.
@rayensboui2687
@rayensboui2687 3 ай бұрын
Found it helpful.Thanks!
@cokgulesimvar
@cokgulesimvar Жыл бұрын
omg! thank you for making it much more easier to understand.
@KaisarAnvar
@KaisarAnvar 2 жыл бұрын
"Sit back, relax, and enjoy the show". Every time when I watch your video, I repeat that with you lol
@bubls.
@bubls. Жыл бұрын
Thank you for the great tutorial! One thing I am wondering about is how I would set the speed for each subclass.
@ankitharshe7003
@ankitharshe7003 Жыл бұрын
by making its constructor in parent class...& later on i would love to see ur speed
@fitzsimmons7
@fitzsimmons7 7 ай бұрын
this was helpful, thank you bro
@userKanchanKidsZone
@userKanchanKidsZone Жыл бұрын
I love your videos . Can you make videos on Spring ,Spring boot, hibernate
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@joemariebisonaya655
@joemariebisonaya655 3 жыл бұрын
thank you for enlighten me.. its very useful in my study
@user-cn7ys9bc2u
@user-cn7ys9bc2u 2 жыл бұрын
I won’t skip any advertisement in order to support u
@siavashdarvishi855
@siavashdarvishi855 Жыл бұрын
heeey bro, i have exam tomorrow and guess what?! you are my savior
@alanwarthon
@alanwarthon Жыл бұрын
Thanks it was very clear.
@rbsfinger
@rbsfinger 8 ай бұрын
Great tutorial. Thanks!
@IykosWhite
@IykosWhite 2 ай бұрын
Very Injecting concept video
@sihleeundefined1208
@sihleeundefined1208 3 жыл бұрын
YOOOH BROH, THESE NEW VIDEOS ARE AWESOME, FINISHED ONE...MAY YOU PLEASE GROUP THESE NEW VIDEOS WITH THE JAVA PLAYLIST👍🏿
@BroCodez
@BroCodez 3 жыл бұрын
Don't worry, I'm updating the Java playlist
@sihleeundefined1208
@sihleeundefined1208 3 жыл бұрын
@@BroCodez Thanks Bro
@bunyodbekho
@bunyodbekho Жыл бұрын
I feel earthquake while you're typing, lol Thank you for the video, it really helped!
@jaru1911
@jaru1911 Жыл бұрын
Liked Commented and subscribed
@gentle9964
@gentle9964 11 ай бұрын
You made that look easy! Thank you!!!
@DanSaboia
@DanSaboia Жыл бұрын
Great video as always, keep the good work !!
@atomiker3560
@atomiker3560 3 ай бұрын
W guy love u, you got a new sub :)
@minhajuddin2705
@minhajuddin2705 10 ай бұрын
very good video helpful it is
@mechatroner-buildwhatevery4381
@mechatroner-buildwhatevery4381 Жыл бұрын
Awesome lecture Bro, got my doubts cleared.
@Foxekins
@Foxekins 2 жыл бұрын
I became a fellow bro :))))) Love ur vids!
@hopmanlumpes8511
@hopmanlumpes8511 2 жыл бұрын
Thnx bro it helps me so gud
@drendos
@drendos 5 ай бұрын
Is there a reason you are not using public, private, static? Is it just for the example? Or does the IDE play a part?
@abnews4897
@abnews4897 9 ай бұрын
Tank you, very excellent explanation
@blackhunter4567
@blackhunter4567 10 ай бұрын
Love from India❤
@codemagic2487
@codemagic2487 2 жыл бұрын
thanks for the video! easy to understand and straight to point
@Kayote_sn
@Kayote_sn Ай бұрын
Nice video! I feel like my BASICS are a bit weak though. Can you cook up a video on that? If you already made one, can I get the link or something?
@honoredegg
@honoredegg 2 жыл бұрын
Understood, inheritance, which both things have in common. 34th. Thank you, ma Bro Sensei!
@Diamond_Hanz
@Diamond_Hanz 3 жыл бұрын
Bro code keeps brings all the bros to the yard. thanks, bro!
@nagazarihun-pz1dz
@nagazarihun-pz1dz Ай бұрын
I am very Usefull
@farxaankhaliif2465
@farxaankhaliif2465 5 ай бұрын
Thank you you helped me
@lasanseniya3109
@lasanseniya3109 Жыл бұрын
Clear, concise and straight to the point. Thank you Bro🥂
@BeeshoStudying
@BeeshoStudying 2 жыл бұрын
thank you for the simple video
@supernovic99
@supernovic99 Жыл бұрын
Thank you bro!
@ericbiscayne6722
@ericbiscayne6722 Жыл бұрын
Hey Bro, have a question: with 3 classes linked one after the other, Ex: Child->Parent->GrandParent, which one is the super class? GrandParent or Parent? they all have a String name variable, so, if I write on my main Child method: super.name="John", which class's name variable gets "John"? or should I be specific like 'super.GrandParent.name="John"? Please advise.. I really wonder
@ericbiscayne6722
@ericbiscayne6722 Жыл бұрын
never mind, I found out it's the parent class; in this case, the paarent class is the super, thnx anyway
@nachoKrinkle
@nachoKrinkle 2 жыл бұрын
Thanks for this video
@AH-uo8vz
@AH-uo8vz Жыл бұрын
This helps so much. Thank you
@YairRachmany
@YairRachmany 4 ай бұрын
Very awesome video
@ahmedmahmmued5113
@ahmedmahmmued5113 8 ай бұрын
Great job! thx a lot
@joanferleymosqueralozano5760
@joanferleymosqueralozano5760 3 жыл бұрын
Thanks bro! excellent video 🏁🏁
@CSstudent_1001
@CSstudent_1001 4 ай бұрын
The best 👏👏👏👏
@lyubomyrsavchuk2527
@lyubomyrsavchuk2527 2 жыл бұрын
what keyboard are you using? Sounds very satisfying
@ahmadserhan3038
@ahmadserhan3038 10 ай бұрын
Very easiy explaing thank you
@user-zq6yx7of5f
@user-zq6yx7of5f Жыл бұрын
Thank you very much
@katiescape
@katiescape 3 ай бұрын
Amazing, ty.
@JesusSanchez-dv2ps
@JesusSanchez-dv2ps 3 жыл бұрын
Really helpful thanks!
@unexploredyt6477
@unexploredyt6477 8 ай бұрын
I like the way he talks
@josearivera63
@josearivera63 Жыл бұрын
Thank, great presentation!
@rohitbharatbhandwalkar8583
@rohitbharatbhandwalkar8583 Жыл бұрын
How can he explain such an overwhelming topic so easily??
@vegancrayon
@vegancrayon 2 жыл бұрын
Thanks so much. this looks much easier now
@christopherapuan9968
@christopherapuan9968 2 жыл бұрын
I appreciate you! Thank you!
@eugenezuev7349
@eugenezuev7349 4 ай бұрын
splendid
@adityaalshi7081
@adityaalshi7081 2 жыл бұрын
great video
@mryoloTHEgreek
@mryoloTHEgreek 5 ай бұрын
lets go BRO GOAT
@ajdndbdjbdj
@ajdndbdjbdj 2 жыл бұрын
Nice my bro
@lokszeto6627
@lokszeto6627 2 жыл бұрын
Amazing teaching. Thx
@robot8815
@robot8815 Жыл бұрын
keep going
@kathleenmccarthy6347
@kathleenmccarthy6347 2 жыл бұрын
thanks this was very helpful
Java method overriding 🙅‍♂️
4:23
Bro Code
Рет қаралды 99 М.
Super Keyword in Java Full Tutorial - How to Use "super"
11:33
Coding with John
Рет қаралды 202 М.
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 86 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 46 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 3,1 МЛН
Magic? 😨
00:14
Andrey Grechka
Рет қаралды 20 МЛН
Object-oriented Programming in 7 minutes | Mosh
7:34
Programming with Mosh
Рет қаралды 3,9 МЛН
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 551 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
Polymorphism In Java Tutorial #92
5:15
Alex Lee
Рет қаралды 345 М.
Google Coding Interview With A Competitive Programmer
54:17
Clément Mihailescu
Рет қаралды 2,5 МЛН
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 890 М.
Java Polymorphism Fully Explained In 7 Minutes
7:16
Coding with John
Рет қаралды 307 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,5 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 86 МЛН