Java inheritance 👪

  Рет қаралды 299,963

Bro Code

Bro Code

Күн бұрын

Пікірлер: 361
@BroCodez
@BroCodez 4 жыл бұрын
//*************************************** 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 3 жыл бұрын
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 3 жыл бұрын
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 9 ай бұрын
@@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)
@BrandonMorrow-v4h
@BrandonMorrow-v4h 11 ай бұрын
You are hands down the best code teacher on KZbin.
@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
@kidshome6295
@kidshome6295 3 ай бұрын
best teacher ever !!!!!!!!!!!!!!!!!!!! you made my life easy God bless you and your beloved ones for ever !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@satvikraval3571
@satvikraval3571 Жыл бұрын
Thank you Bro. No confusion, straight to the point, no BS
@BinsiAgone
@BinsiAgone 2 жыл бұрын
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.
@bernardcyrus8189
@bernardcyrus8189 Жыл бұрын
Prayers answered! Most straight forward explanation I’ve seen!
@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
@gusocha3852
@gusocha3852 Ай бұрын
Super awesome Java tutorial! 👍🏼 I learn a lot from here!
@liliacfury
@liliacfury 4 жыл бұрын
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.
@silasbrailey2445
@silasbrailey2445 10 ай бұрын
This was great. My professor is making it his life's work to make sure I dont understand inheritance.
@YonatanHaile-rf2jm
@YonatanHaile-rf2jm 2 ай бұрын
Simple yet an amazing explanation
@karlodinn5426
@karlodinn5426 9 ай бұрын
Great Explanation as Always
@professionalaveragekid
@professionalaveragekid 6 ай бұрын
probably one of the most comprehensive java tutorials, without cutting corners :D
@100rats2
@100rats2 3 жыл бұрын
Thanks for making it short and having nothing useless
@seabrin
@seabrin Жыл бұрын
Your 6-minute video made the bootcamp LMS content much easier to understand. Much appreciated!
@theBATfamiliar
@theBATfamiliar 7 ай бұрын
beautifully explained I really appreciate the turorial, thanks!
@nefhrit
@nefhrit 24 күн бұрын
I love you man, I learn 99% from you and 1% from school
@ivosesugh871
@ivosesugh871 2 жыл бұрын
Bro just out here saving lives and time. Thanks Bro
@YairRachmany
@YairRachmany 8 ай бұрын
Very awesome video
@bk-entertainz7081
@bk-entertainz7081 2 жыл бұрын
You made this super simple to understand. Thank you.
@dianamilenaarchilacordoba4632
@dianamilenaarchilacordoba4632 3 ай бұрын
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
@SnothiSmelane
@SnothiSmelane 4 ай бұрын
You probably the best teacher 🔥
@jaywest1593
@jaywest1593 6 ай бұрын
Good video. Thanks for the applied example
@abhisheksinhgohil8463
@abhisheksinhgohil8463 Жыл бұрын
Great Class
@kaushikkundu
@kaushikkundu Жыл бұрын
Clean teaching... underrated channel bro
@play-cu5tv
@play-cu5tv 3 жыл бұрын
best tutorial I found Thank you!. You got a new Subscriber '
@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
@jazielgarcia8057
@jazielgarcia8057 Жыл бұрын
thanks for making it so easy to understand, awesome video, no more neither less information of what i needed
@patriotkz2308
@patriotkz2308 3 ай бұрын
Clear and informative. Thanks!
@MuhammadHazimbinAzahan
@MuhammadHazimbinAzahan 2 ай бұрын
thanks bro, got an assignment due in one week, thanks for the help my guy
@haziqwhz
@haziqwhz 2 ай бұрын
stop lying bro im your classmate
@aniedaniel3799
@aniedaniel3799 Жыл бұрын
Awesome! Incredibly clear, unlike my teacher :(
@snickered
@snickered 7 ай бұрын
thx brah... your Java series is legit
@IykosWhite
@IykosWhite 6 ай бұрын
Very Injecting concept video
@juanestebanparraparra8531
@juanestebanparraparra8531 2 жыл бұрын
Your tutorials are the best there are!
@minhajuddin2705
@minhajuddin2705 Жыл бұрын
very good video helpful it is
@mattmjlg5053
@mattmjlg5053 2 жыл бұрын
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
@ahmadserhan3038
@ahmadserhan3038 Жыл бұрын
Very easiy explaing thank you
@charliebryant1987
@charliebryant1987 8 ай бұрын
Thank you, can't wait to use this to start my own business
@CodeBytes_Official
@CodeBytes_Official 4 ай бұрын
teaching was straight to the point bro code!
@sujayirrinki4915
@sujayirrinki4915 Жыл бұрын
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.
@revanthk61
@revanthk61 3 жыл бұрын
Impressed by your teaching skills.
@CSstudent_1001
@CSstudent_1001 9 ай бұрын
The best 👏👏👏👏
@jasontilford4068
@jasontilford4068 10 ай бұрын
Great straight forward explanation. Thank you!
@mustafaalsais7901
@mustafaalsais7901 2 жыл бұрын
You made it extremely easy to understand. Thank you man
@jaru1911
@jaru1911 2 жыл бұрын
Liked Commented and subscribed
@lucreatiaalexander9476
@lucreatiaalexander9476 Жыл бұрын
Thank you so much for this tutorial!! It was very comprehensive and helpful.
@sohailashraq-ek7gy
@sohailashraq-ek7gy Жыл бұрын
Great teaching 👏
@albertoam2
@albertoam2 Жыл бұрын
Thanks for this, it has been very easy to grasp the concept with your explanation
@solomonwise8126
@solomonwise8126 Ай бұрын
Love from Kenya... manze unatuokolea
@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
@yasina63
@yasina63 2 жыл бұрын
Your teaching way is very good. Keep it up. Watching from Ethiopia
@abnews4897
@abnews4897 Жыл бұрын
Tank you, very excellent explanation
@DanSaboia
@DanSaboia Жыл бұрын
Great video as always, keep the good work !!
@BeeshoStudying
@BeeshoStudying 2 жыл бұрын
thank you for the simple video
@adityaalshi7081
@adityaalshi7081 2 жыл бұрын
great video
@Rosdell
@Rosdell 2 жыл бұрын
Cool work...👍
@quanyufeng579
@quanyufeng579 3 жыл бұрын
Fantastic video
@arunnteam1901
@arunnteam1901 2 жыл бұрын
bro thank u best tutorial on thye internet
@jason.fenstermaker
@jason.fenstermaker 8 ай бұрын
Liked and subscribed, great stuff man your content is very helpful
@cokgulesimvar
@cokgulesimvar 2 жыл бұрын
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
@nachoKrinkle
@nachoKrinkle 2 жыл бұрын
Thanks for this video
@eprice000
@eprice000 2 жыл бұрын
Thank you! I enjoyed the explanation of inheritance in just a short video.
@joemariebisonaya655
@joemariebisonaya655 3 жыл бұрын
thank you for enlighten me.. its very useful in my study
@blackhunter4567
@blackhunter4567 Жыл бұрын
Love from India❤
@lokszeto6627
@lokszeto6627 2 жыл бұрын
Amazing teaching. Thx
@kainaatmakhani6550
@kainaatmakhani6550 3 жыл бұрын
marvellous job
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@mechatroner-buildwhatevery4381
@mechatroner-buildwhatevery4381 Жыл бұрын
Awesome lecture Bro, got my doubts cleared.
@eugenezuev7349
@eugenezuev7349 8 ай бұрын
splendid
@rayensboui2687
@rayensboui2687 7 ай бұрын
Found it helpful.Thanks!
@fitzsimmons7
@fitzsimmons7 11 ай бұрын
this was helpful, thank you bro
@robot8815
@robot8815 Жыл бұрын
keep going
@AbduqodirOdiljonov-o4x
@AbduqodirOdiljonov-o4x 9 ай бұрын
Great
@rickychinchilla1192
@rickychinchilla1192 Ай бұрын
for those it may concern he's using the Eclipse IDE...Nice java conding 🤗
@rbsfinger
@rbsfinger Жыл бұрын
Great tutorial. Thanks!
@holygraphite1292
@holygraphite1292 2 жыл бұрын
Great.
@alanwarthon
@alanwarthon Жыл бұрын
Thanks it was very clear.
@Foxekins
@Foxekins 3 жыл бұрын
I became a fellow bro :))))) Love ur vids!
@奶茶漢化
@奶茶漢化 2 жыл бұрын
I won’t skip any advertisement in order to support u
@PetBuddies
@PetBuddies 3 жыл бұрын
Awesome!!!!!!!!!!!!
@justinbanza4751
@justinbanza4751 3 жыл бұрын
Thank you for that video......
@Rohithgowda-q3d
@Rohithgowda-q3d 2 ай бұрын
good go!!
@shalajko
@shalajko 4 жыл бұрын
good, good...
@SHAREEF-wh9qw
@SHAREEF-wh9qw 15 күн бұрын
Superb
@joanferleymosqueralozano5760
@joanferleymosqueralozano5760 3 жыл бұрын
Thanks bro! excellent video 🏁🏁
@nagazarihun-pz1dz
@nagazarihun-pz1dz 5 ай бұрын
I am very Usefull
@atomiker3560
@atomiker3560 8 ай бұрын
W guy love u, you got a new sub :)
@userkanchank
@userkanchank Жыл бұрын
I love your videos . Can you make videos on Spring ,Spring boot, hibernate
@Ansar3471
@Ansar3471 2 жыл бұрын
Cool explanation!!!
@savagedesuyoooooo2182
@savagedesuyoooooo2182 Жыл бұрын
good stuff
@bunyodbekho
@bunyodbekho 2 жыл бұрын
I feel earthquake while you're typing, lol Thank you for the video, it really helped!
@josearivera63
@josearivera63 2 жыл бұрын
Thank, great presentation!
@Diamond_Hanz
@Diamond_Hanz 3 жыл бұрын
Bro code keeps brings all the bros to the yard. thanks, bro!
@Jan-fw7qz
@Jan-fw7qz 3 жыл бұрын
That's really good
@codemagic2487
@codemagic2487 3 жыл бұрын
thanks for the video! easy to understand and straight to point
@franklinkaranja7446
@franklinkaranja7446 2 жыл бұрын
nicely done
Java method overriding 🙅‍♂️
4:23
Bro Code
Рет қаралды 113 М.
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 135 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Super Keyword in Java Full Tutorial - How to Use "super"
11:33
Coding with John
Рет қаралды 221 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 565 М.
Inheritance in Java Tutorial #86
10:34
Alex Lee
Рет қаралды 395 М.
Java abstraction 👻
5:30
Bro Code
Рет қаралды 152 М.
Java Inheritance - Subclass and Superclass Program #88
14:02
Alex Lee
Рет қаралды 155 М.
Java objects (OOP) ☕
10:46
Bro Code
Рет қаралды 203 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Java access modifiers: (public, protected, private) 🔒
10:13
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 157 М.
Please Master This MAGIC Python Feature... 🪄
25:10
Tech With Tim
Рет қаралды 69 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН