Java abstraction 👻

  Рет қаралды 152,738

Bro Code

Bro Code

Күн бұрын

Пікірлер: 213
@BroCodez
@BroCodez 4 жыл бұрын
//****************************************** public class Main { public static void main(String[] args) { // abstract = abstract classes cannot be instantiated, but they can have a subclass // abstract methods are declared without an implementation //Vehicle vehicle = new Vehicle(); Car car = new Car(); car.go(); } } //****************************************** public abstract class Vehicle { abstract void go(); } //****************************************** public class Car extends Vehicle{ @Override void go() { System.out.println("The driver is driving the car"); } } //******************************************
@ericbiscayne6722
@ericbiscayne6722 Жыл бұрын
You sound very nice and attractive
@thegreenroom5820
@thegreenroom5820 2 жыл бұрын
WTH... I have read full chapters on this topic and didn't come away with this clarity. You have earned a subscriber.
@Pzdrs
@Pzdrs 3 жыл бұрын
such a godlike explanation what the heck
@kristijanlazarev
@kristijanlazarev 10 ай бұрын
CRAZY
@SinghB4
@SinghB4 2 жыл бұрын
Missed classes because I was sick and your videos helped me so much in so little time. The best 🙌🏼
@funkyliani
@funkyliani Жыл бұрын
I started learning Java through an online course, which is terrible at explaining things, leaving me confused lot of the time. Then comes BRO, who explains everything so simply and elegantly that I have no problems understanding it! Thank you BRO!
@mohammadreza1414
@mohammadreza1414 5 ай бұрын
Your videos gives everyone a very clean start. This is great because we can easily build on that using other resources.
@laurahanna5228
@laurahanna5228 10 ай бұрын
Honestly, your videos are saving me this semester. You explain it better than my professor, thank you for making content like this.
@ericbiscayne6722
@ericbiscayne6722 Жыл бұрын
Bro; you have no idea how much you've helped me so far to learn Java. Any doubts I come here, looking for an example that you have,no doubt thank you, sincerely. - Never thought a bro' would save my ass this way. Love you and admire you.
@donuteater7774
@donuteater7774 7 ай бұрын
I love you. Someone who can actually explain things!!!
@juvenalbaera2641
@juvenalbaera2641 3 жыл бұрын
I don't understand English a lot, but with this guy, I'm understanding 90%. Muito obrigado ✌️ From Mozambique🇲🇿
@shalomerror6236
@shalomerror6236 2 жыл бұрын
Hey, Juvenal! How is your Java-learning going on?
@juvenalbaera2641
@juvenalbaera2641 2 жыл бұрын
@@shalomerror6236 it's going well
@hero_bsb6314
@hero_bsb6314 2 жыл бұрын
méquié Juvenal ainda fazes Java?
@juvenalbaera2641
@juvenalbaera2641 2 жыл бұрын
@@hero_bsb6314 parei há bom tempo.
@ericbiscayne6722
@ericbiscayne6722 Жыл бұрын
Hi, do what I do. Goto settings and select playback speed. I lowered it to 70%,S, that way I can follow what he is saying one way or another. good luck
@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
@NotYou-xk2bo
@NotYou-xk2bo 2 жыл бұрын
Another great and easy to understand video
@deeplife9654
@deeplife9654 Жыл бұрын
Just made a comment for prayer to KZbin algorithm ❤❤❤❤❤
@revanthk61
@revanthk61 3 жыл бұрын
Best video to learn about Abstract Classes.
@izlepox5234
@izlepox5234 Жыл бұрын
thank you bro, my professor didnt explain this well and now i totally get it
@the_yb7
@the_yb7 2 жыл бұрын
This my 6th/7th video in this channel, Man!!!! I got to say this, yo explanations are spot on and explaining in a logical way make really sense on each of the topics. Good luck and keep doing
@nevenatutunovic6576
@nevenatutunovic6576 8 ай бұрын
WOW..now is so easy for understanding!Thanks
@viktoriyapetrova8692
@viktoriyapetrova8692 8 ай бұрын
thank you so much for the explanation, you are the best!!! You did in 5 minutes what my professor was not able to do the whole semester.
@a1rman906
@a1rman906 4 ай бұрын
"and they might think ur crazy".. bro ur the goat of explaining java
@juanbaquero8628
@juanbaquero8628 11 ай бұрын
Cristal clear! Thanks bro!
@chiyuzhang3089
@chiyuzhang3089 Жыл бұрын
simple and awesome like always
@wyattpearce
@wyattpearce 2 ай бұрын
I feel like you are following the book "Java Programming" by Joyce Farrell
@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
@hgatl
@hgatl 4 жыл бұрын
awesome video
@Overlanding_America
@Overlanding_America Ай бұрын
great explanation thanks. love coming to your channel before a new section in my Udemy course so i have a good high level understanding before getting into the complex stuff
@danny.3036
@danny.3036 3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@GeoffreyofCastille
@GeoffreyofCastille 3 жыл бұрын
Great explanation, very helpful!
@BereketBelete-o2d
@BereketBelete-o2d 5 ай бұрын
Brilliant! Keep it up!
@a2011q
@a2011q 3 жыл бұрын
thank you bro, I am using your videos to learn java, very helpfull to me, good luck, keep up the good work !!!
@jerryysen
@jerryysen 11 ай бұрын
the car dealership example
@Armadder
@Armadder Жыл бұрын
Thank you for this video, I'm just about done reading the pdf I have in my coding class because it just goes on; I've never been huge on reading instructions. This gets straight to the point and makes the purpose of it obvious.
@aiueo8962
@aiueo8962 Жыл бұрын
anjay, langsung paham gw, keren bang, lanjutkan kerjamu
@georgey084
@georgey084 2 жыл бұрын
I have been avoiding any instance that would make me use abstract classes cos the articles I read before never explained it clearly but I think this is the safest way to me now. I have been creating classes and just making things simple by using access modifiers, but yeah, thumb up Bro.
@elionayzuridasilveira4140
@elionayzuridasilveira4140 7 ай бұрын
Thank you man for this new old tutorial
@yousifalisyed5504
@yousifalisyed5504 Жыл бұрын
Thanks for the explanation
@sanskritigiri
@sanskritigiri Жыл бұрын
This was a great example
@nouraldinurfan5024
@nouraldinurfan5024 4 ай бұрын
thanks for helping us.
@DiyakoAdnanAbdullahWahab
@DiyakoAdnanAbdullahWahab 10 ай бұрын
best channel on youtube.
@hachemhannechi6422
@hachemhannechi6422 3 жыл бұрын
Good videos , very helpful , we need a mysql tutorial to complete the full stack dev
@PetiteKero
@PetiteKero Жыл бұрын
I LOVE these explanations, the example with the dealership and the vagueness was extraordinary. 💙 Just one thing that's still keeping me from fully diving into everything: I sometimes miss the practical use. Why would I wanna prevent somebody from instantiating the abstract class? Why do I need to send values to a constructor and not just use the Main class? Any idea how to untie this knot in my brain (which lets me think a miss the very basics of Java)?
@soumelee5661
@soumelee5661 2 жыл бұрын
i finally understand abstract class, like the "why?" of this topic
@augischadiegils.5109
@augischadiegils.5109 4 жыл бұрын
Another awesome video thanks bro :)
@GamingWithMighty98
@GamingWithMighty98 5 ай бұрын
Nice Bro
@jasonpoonia
@jasonpoonia 2 жыл бұрын
You are a legend!
@deez-48
@deez-48 Жыл бұрын
thanks that helped me remember the concept
@luisantonio7191
@luisantonio7191 Жыл бұрын
Thanks for the class
@supersakib62
@supersakib62 2 жыл бұрын
Thanks for clear cut explanation.
@Muhammadfaisal-kd9kx
@Muhammadfaisal-kd9kx Жыл бұрын
easy to understand thankyou
@dllm3tommy741
@dllm3tommy741 Жыл бұрын
Thanks for the video
@Comedianalexj
@Comedianalexj Жыл бұрын
Nice bro... this made it sooo simple to understand! Thx
@kemann3815
@kemann3815 3 жыл бұрын
Extraordinary work
@Bastyanul
@Bastyanul 2 жыл бұрын
Thanks for the video and the knowledge you offer!
@yonasfikadie5323
@yonasfikadie5323 Жыл бұрын
nice ❤💛💚
@rafalgontarski3254
@rafalgontarski3254 2 жыл бұрын
That's awesome
@jahed1311
@jahed1311 2 жыл бұрын
youre just great .
@YouTube4u95
@YouTube4u95 Жыл бұрын
Very helpful, thank you.
@Arryan.gh1
@Arryan.gh1 Жыл бұрын
Love you, from France
@nawfalnjm5699
@nawfalnjm5699 3 жыл бұрын
great video , thank you !
@mohammadalaskari700
@mohammadalaskari700 2 жыл бұрын
This really helped me. Thank you.
@nycolleamaral581
@nycolleamaral581 10 ай бұрын
thanks you, I am brasilian and dont understanding ingles very, but you tell so good!
@Gabriel-xq6tn
@Gabriel-xq6tn 8 ай бұрын
Good explanation. Do you need to have a regular method inside an abstract class since an abstract class cannot instantiate objects?
@arkamukhopadhyay2177
@arkamukhopadhyay2177 4 жыл бұрын
Sir, I have two questions: 1. Can an abstract class have a normal (non-abstract) method? 2. Can a normal class have an abstract function?
@BroCodez
@BroCodez 4 жыл бұрын
Hello Arka! Good questions 1. An abstract class will need static methods since we cannot create an instance of an abstract class 2. A normal class cannot have abstract methods
@arkamukhopadhyay2177
@arkamukhopadhyay2177 4 жыл бұрын
@@BroCodez Thanks!!! 👍
@waleedahmed396
@waleedahmed396 3 жыл бұрын
@@arkamukhopadhyay2177 abstract class can hove normal method
@michael_scarn_
@michael_scarn_ Жыл бұрын
Thank you Bro, you're the best!
@tamekkaknuth9612
@tamekkaknuth9612 2 жыл бұрын
Nice job again!!
@sergeyb6071
@sergeyb6071 4 жыл бұрын
very well explained!
@FarizDarari
@FarizDarari 2 жыл бұрын
Many thanks! Stay healthy, stay happy, Bro Teacher!
@msmilky6130
@msmilky6130 Ай бұрын
this has helped me
@Sin1kicune
@Sin1kicune 2 жыл бұрын
nice job bro
@ymmaaarrrr
@ymmaaarrrr 2 жыл бұрын
nice video
@lmao9619
@lmao9619 8 ай бұрын
best person in the world
@TheEvertonDias
@TheEvertonDias Жыл бұрын
Thanks, Bro!
@ericamuhammad5082
@ericamuhammad5082 2 жыл бұрын
Thank you!
@曾毓哲-b1t
@曾毓哲-b1t Жыл бұрын
Thank you very much!!
@jennethestrada2232
@jennethestrada2232 Жыл бұрын
great
@thomas_1611
@thomas_1611 2 жыл бұрын
Bro is the best
@miuwai6211
@miuwai6211 2 жыл бұрын
Clear explanation. Thank you Bro -:)
@jessepen2
@jessepen2 Жыл бұрын
THANKS BRO!
@hawzhin010
@hawzhin010 2 жыл бұрын
thanks for you bro❤
@Easy.educantion
@Easy.educantion Ай бұрын
Thanks sir
@developerjunior446
@developerjunior446 3 жыл бұрын
Super
@kardrynka
@kardrynka Жыл бұрын
Perfect
@huuloc8719
@huuloc8719 3 жыл бұрын
Nice.
@usfeed4902
@usfeed4902 4 жыл бұрын
great ! thanks !
@david_jn24
@david_jn24 Жыл бұрын
number one
@xXMaDGaMeR
@xXMaDGaMeR 2 жыл бұрын
love you bro
@The-eo4lj
@The-eo4lj 3 ай бұрын
Wait but what's the difference between this and just making the methods in the classes you need them in in the first places? If you just override an abstract(useless?) method
@curtking8803
@curtking8803 3 жыл бұрын
good stuff every time you hit the nail on the head quickly and clearly. let me know when your bible is ready i need a copy... Bro Code Bible,... never leave the house without it
@BroCodez
@BroCodez 3 жыл бұрын
Thou shall not use many 'else if' statements
@yevgenomelchenko732
@yevgenomelchenko732 Жыл бұрын
Hey you many thanks to you!!!
@minhtetpaing1695
@minhtetpaing1695 3 жыл бұрын
Thank you so much sir.
@rashmikakelum8803
@rashmikakelum8803 Жыл бұрын
thank you bro
@huylee4721
@huylee4721 7 ай бұрын
nice
@davidkuda7074
@davidkuda7074 3 жыл бұрын
Nice bro, thanks!
@tamekkaknuth9612
@tamekkaknuth9612 2 жыл бұрын
thank you !!
@immortlreacts1740
@immortlreacts1740 Жыл бұрын
appreciate it!
@justinbanza4751
@justinbanza4751 3 жыл бұрын
very useful
@romario92730
@romario92730 3 жыл бұрын
Thank you so much
@marbles5590
@marbles5590 Жыл бұрын
Great video! For the ones out there who are quite confused with the given example, another similar code snippet is like this: //Vehicle(superclass) //Bike, Car, Boat (all are subclasses and uses the extends keyword) Vehicle a = new Car(); Vehicle b = new Bike(); Vehicle c = new Boat(); Vehicle[] test = {a, b, c}; This is much more understandable and less confusing for some. However, if there's a unique method present on one of those three subclasses above (for example, like void printCarModel() in the Car class only) that is NOT present in the Vehicle superclass, you would need to use the example code shown in the video. If we try to access the printCarModel() method: a.printCarModel(); It would result in an error since the type of 'a' is 'Vehicle' and not 'Car' (because we did Vehicle a = new Car(); and there's no such printCarModel() in Vehicle) Use: Car a = new Car(); instead to access that unique method.
@suhailraja7797
@suhailraja7797 9 ай бұрын
You could also typecast the vehicle into a car to access the method I also have one question that I'm confused about abstract classes What's the point of them? In this video he said it's to add a further layer of security to prevent someone using too vague or broad of a class and trying to make an object out of that but can't you just solve that by not making that class at all Is it because we need the superclass because it makes writing subclasses quicker because we can just use the super keyword to access all the general shared information that the subclasses have with the superclass, that way it encapsulates code more or are there any other reasons
@rrsb45
@rrsb45 3 жыл бұрын
thx a lot bro!
@Wonder_Chariot
@Wonder_Chariot 14 күн бұрын
i love bro when he calls me bro
@Kyll_m
@Kyll_m 11 ай бұрын
liking it
Java access modifiers: (public, protected, private) 🔒
10:13
Java interface 🦅
7:51
Bro Code
Рет қаралды 218 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 551 М.
Java encapsulation 💊
8:27
Bro Code
Рет қаралды 128 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 566 М.
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 135 М.
Java constructors 👷
10:37
Bro Code
Рет қаралды 203 М.
Java objects (OOP) ☕
10:46
Bro Code
Рет қаралды 203 М.
Java method overriding 🙅‍♂️
4:23
Bro Code
Рет қаралды 113 М.
Java generics ❓
22:04
Bro Code
Рет қаралды 120 М.
Java exception handling ⚠️
7:53
Bro Code
Рет қаралды 123 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН