Java inheritance 👪

  Рет қаралды 236,927

Bro Code

Bro Code

3 жыл бұрын

Java inheritance tutorial example|
#Java #inheritance #tutorial #example

Пікірлер: 273
@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 10 ай бұрын
lol
@marcoslightspeed5517
@marcoslightspeed5517 9 ай бұрын
used 3 classes for a first example lol
@dodgevanniel01
@dodgevanniel01 2 ай бұрын
@@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)
@hanac5586
@hanac5586 2 жыл бұрын
Clear and straight to the point. Thank you
@user-ux9kj4tc5p
@user-ux9kj4tc5p 3 ай бұрын
You are hands down the best code teacher on KZbin.
@cosecE
@cosecE 2 жыл бұрын
you have no idea how better this video made me feel thank you so much college been really overwhelming so far
@satvikraval3571
@satvikraval3571 11 ай бұрын
Thank you Bro. No confusion, straight to the point, no BS
@bernardcyrus8189
@bernardcyrus8189 11 ай бұрын
Prayers answered! Most straight forward explanation I’ve seen!
@seabrin
@seabrin 8 ай бұрын
Your 6-minute video made the bootcamp LMS content much easier to understand. Much appreciated!
@bk-entertainz7081
@bk-entertainz7081 Жыл бұрын
You made this super simple to understand. Thank you.
@revanthk61
@revanthk61 2 жыл бұрын
Impressed by your teaching skills.
@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
@mustafaalsais7901
@mustafaalsais7901 Жыл бұрын
You made it extremely easy to understand. Thank you man
@ivosesugh871
@ivosesugh871 Жыл бұрын
Bro just out here saving lives and time. Thanks Bro
@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
@jasontilford4068
@jasontilford4068 3 ай бұрын
Great straight forward explanation. Thank you!
@snickered
@snickered 14 күн бұрын
thx brah... your Java series is legit
@aniedaniel3799
@aniedaniel3799 5 ай бұрын
Awesome! Incredibly clear, unlike my teacher :(
@juanestebanparraparra8531
@juanestebanparraparra8531 2 жыл бұрын
Your tutorials are the best there are!
@joemariebisonaya655
@joemariebisonaya655 2 жыл бұрын
thank you for enlighten me.. its very useful in my study
@codemagic2487
@codemagic2487 2 жыл бұрын
thanks for the video! easy to understand and straight to point
@eprice000
@eprice000 Жыл бұрын
Thank you! I enjoyed the explanation of inheritance in just a short video.
@jazielgarcia8057
@jazielgarcia8057 8 ай бұрын
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
@JuliHoffman
@JuliHoffman 2 жыл бұрын
You made that look easy! Thank you!!!
@karlodinn5426
@karlodinn5426 2 ай бұрын
Great Explanation as Always
@charliebryant1987
@charliebryant1987 Ай бұрын
Thank you, can't wait to use this to start my own business
@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
@theBATfamiliar
@theBATfamiliar 8 күн бұрын
beautifully explained I really appreciate the turorial, thanks!
@jason.fenstermaker
@jason.fenstermaker Ай бұрын
Liked and subscribed, great stuff man your content is very helpful
@lucreatiaalexander9476
@lucreatiaalexander9476 7 ай бұрын
Thank you so much for this tutorial!! It was very comprehensive and helpful.
@kaushikkundu
@kaushikkundu Жыл бұрын
Clean teaching... underrated channel bro
@play-cu5tv
@play-cu5tv 2 жыл бұрын
best tutorial I found Thank you!. You got a new Subscriber '
@cokgulesimvar
@cokgulesimvar Жыл бұрын
omg! thank you for making it much more easier to understand.
@rbsfinger
@rbsfinger 5 ай бұрын
Great tutorial. Thanks!
@lokszeto6627
@lokszeto6627 Жыл бұрын
Amazing teaching. Thx
@rayensboui2687
@rayensboui2687 15 күн бұрын
Found it helpful.Thanks!
@mechatroner-buildwhatevery4381
@mechatroner-buildwhatevery4381 Жыл бұрын
Awesome lecture Bro, got my doubts cleared.
@joanferleymosqueralozano5760
@joanferleymosqueralozano5760 3 жыл бұрын
Thanks bro! excellent video 🏁🏁
@harjotsingh9894
@harjotsingh9894 3 жыл бұрын
Amazing as always.
@DanSaboia
@DanSaboia Жыл бұрын
Great video as always, keep the good work !!
@abnews4897
@abnews4897 6 ай бұрын
Tank you, very excellent explanation
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@josearivera63
@josearivera63 Жыл бұрын
Thank, great presentation!
@sujayirrinki4915
@sujayirrinki4915 4 ай бұрын
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.
@yasina63
@yasina63 2 жыл бұрын
Your teaching way is very good. Keep it up. Watching from Ethiopia
@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
@silasbrailey2445
@silasbrailey2445 3 ай бұрын
This was great. My professor is making it his life's work to make sure I dont understand inheritance.
@romanrubanovich9273
@romanrubanovich9273 3 жыл бұрын
Very good course, thank you
@atomiker3560
@atomiker3560 25 күн бұрын
W guy love u, you got a new sub :)
@katiescape
@katiescape 2 күн бұрын
Amazing, ty.
@ahmedmahmmued5113
@ahmedmahmmued5113 5 ай бұрын
Great job! thx a lot
@fitzsimmons7
@fitzsimmons7 4 ай бұрын
this was helpful, thank you bro
@BeeshoStudying
@BeeshoStudying 2 жыл бұрын
thank you for the simple video
@JesusSanchez-dv2ps
@JesusSanchez-dv2ps 3 жыл бұрын
Really helpful thanks!
@marvinarias2798
@marvinarias2798 9 ай бұрын
Cool work!
@Ansar3471
@Ansar3471 Жыл бұрын
Cool explanation!!!
@arunnteam1901
@arunnteam1901 Жыл бұрын
bro thank u best tutorial on thye internet
@AH-uo8vz
@AH-uo8vz Жыл бұрын
This helps so much. Thank you
@vegancrayon
@vegancrayon 2 жыл бұрын
Thanks so much. this looks much easier now
@YairRachmany
@YairRachmany Ай бұрын
Very awesome video
@dayhawka2390
@dayhawka2390 2 жыл бұрын
Great class, Thanks
@balanandrei6432
@balanandrei6432 Жыл бұрын
Very useful tutorial!
@justinbanza4751
@justinbanza4751 2 жыл бұрын
Thank you for that video......
@jaru1911
@jaru1911 Жыл бұрын
Liked Commented and subscribed
@christopherapuan9968
@christopherapuan9968 Жыл бұрын
I appreciate you! Thank you!
@Rosdell
@Rosdell Жыл бұрын
Cool work...👍
@kemann3815
@kemann3815 2 жыл бұрын
Thanks for another one 🙏
@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
@KaisarAnvar
@KaisarAnvar 2 жыл бұрын
"Sit back, relax, and enjoy the show". Every time when I watch your video, I repeat that with you lol
@hopmanlumpes8511
@hopmanlumpes8511 2 жыл бұрын
Thnx bro it helps me so gud
@lyubomyrsavchuk2527
@lyubomyrsavchuk2527 2 жыл бұрын
what keyboard are you using? Sounds very satisfying
@sohailashraq-ek7gy
@sohailashraq-ek7gy Жыл бұрын
Great teaching 👏
@Foxekins
@Foxekins 2 жыл бұрын
I became a fellow bro :))))) Love ur vids!
@alanwarthon
@alanwarthon Жыл бұрын
Thanks it was very clear.
@CSstudent_1001
@CSstudent_1001 2 ай бұрын
The best 👏👏👏👏
@kirillutsenko9306
@kirillutsenko9306 Жыл бұрын
thx, great job
@kainaatmakhani6550
@kainaatmakhani6550 3 жыл бұрын
marvellous job
@ahmadserhan3038
@ahmadserhan3038 7 ай бұрын
Very easiy explaing thank you
@honoredegg
@honoredegg Жыл бұрын
Understood, inheritance, which both things have in common. 34th. Thank you, ma Bro Sensei!
@drendos
@drendos 2 ай бұрын
Is there a reason you are not using public, private, static? Is it just for the example? Or does the IDE play a part?
@Jan-fw7qz
@Jan-fw7qz 3 жыл бұрын
That's really good
@user-wg5rd6rl11fgt
@user-wg5rd6rl11fgt Жыл бұрын
I love your videos . Can you make videos on Spring ,Spring boot, hibernate
@supernovic99
@supernovic99 Жыл бұрын
Thank you bro!
@TharaMesseroux1
@TharaMesseroux1 2 жыл бұрын
Thank you, Bro!
@blackhunter4567
@blackhunter4567 7 ай бұрын
Love from India❤
@TheEvertonDias
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@holygraphite1292
@holygraphite1292 Жыл бұрын
Great.
@nachoKrinkle
@nachoKrinkle Жыл бұрын
Thanks for this video
@kathleenmccarthy6347
@kathleenmccarthy6347 2 жыл бұрын
thanks this was very helpful
@farxaankhaliif2465
@farxaankhaliif2465 2 ай бұрын
Thank you you helped me
@minhajuddin2705
@minhajuddin2705 7 ай бұрын
very good video helpful it is
@minhtetpaing1695
@minhtetpaing1695 3 жыл бұрын
Thank you so much sir.
@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
@Admanbit
@Admanbit 4 ай бұрын
Thanks Bro
@PetBuddies
@PetBuddies 2 жыл бұрын
Awesome!!!!!!!!!!!!
@fantasy9960
@fantasy9960 Жыл бұрын
Thank you!
@Diamond_Hanz
@Diamond_Hanz 3 жыл бұрын
Bro code keeps brings all the bros to the yard. thanks, bro!
@eugenezuev7349
@eugenezuev7349 Ай бұрын
splendid
Java method overriding 🙅‍♂️
4:23
Bro Code
Рет қаралды 91 М.
Super Keyword in Java Full Tutorial - How to Use "super"
11:33
Coding with John
Рет қаралды 191 М.
Why? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 46 МЛН
КАКОЙ ВАШ ЛЮБИМЫЙ ЦВЕТ?😍 #game #shorts
00:17
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 13 МЛН
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 108 М.
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 839 М.
Java Polymorphism Fully Explained In 7 Minutes
7:16
Coding with John
Рет қаралды 286 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 131 М.
__new__ vs __init__ in Python
10:50
mCoding
Рет қаралды 204 М.
Inheritance in C++
8:00
The Cherno
Рет қаралды 373 М.
Java abstraction 👻
5:30
Bro Code
Рет қаралды 121 М.
Java super keyword 🦸‍♂️
8:09
Bro Code
Рет қаралды 87 М.
Java dynamic polymorphism ✨
8:52
Bro Code
Рет қаралды 63 М.
Java Inheritance - Subclass and Superclass Program #88
14:02
Alex Lee
Рет қаралды 147 М.
XL-Power Best For Audio Call 📞 Mobile 📱
0:42
Tech Official
Рет қаралды 772 М.
What percentage of charge is on your phone now? #entertainment
0:14
Fiber kablo
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН
cool watercooled mobile phone radiator #tech #cooler #ytfeed
0:14
Stark Edition
Рет қаралды 6 МЛН
#miniphone
0:18
Miniphone
Рет қаралды 11 МЛН