//****************************************** 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
Жыл бұрын
You sound very nice and attractive
@RoxioCZE
3 жыл бұрын
such a godlike explanation what the heck
@kristijanlazarev
6 ай бұрын
CRAZY
@thegreenroom5820
2 жыл бұрын
WTH... I have read full chapters on this topic and didn't come away with this clarity. You have earned a subscriber.
@juvenalbaera2641
2 жыл бұрын
I don't understand English a lot, but with this guy, I'm understanding 90%. Muito obrigado ✌️ From Mozambique🇲🇿
@shalomerror6236
2 жыл бұрын
Hey, Juvenal! How is your Java-learning going on?
@juvenalbaera2641
2 жыл бұрын
@@shalomerror6236 it's going well
@hero_bsb6314
Жыл бұрын
méquié Juvenal ainda fazes Java?
@juvenalbaera2641
Жыл бұрын
@@hero_bsb6314 parei há bom tempo.
@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
@SinghB4
Жыл бұрын
Missed classes because I was sick and your videos helped me so much in so little time. The best 🙌🏼
@donuteater7774
2 ай бұрын
I love you. Someone who can actually explain things!!!
@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!
@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.
@laurahanna5228
6 ай бұрын
Honestly, your videos are saving me this semester. You explain it better than my professor, thank you for making content like this.
@a1rman906
12 күн бұрын
"and they might think ur crazy".. bro ur the goat of explaining java
@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
@mohammadreza1414
Ай бұрын
Your videos gives everyone a very clean start. This is great because we can easily build on that using other resources.
@izlepox5234
Жыл бұрын
thank you bro, my professor didnt explain this well and now i totally get it
@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
3 ай бұрын
WOW..now is so easy for understanding!Thanks
@GamingWithMighty98
23 күн бұрын
Nice Bro
@viktoriyapetrova8692
3 ай бұрын
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.
@a2011q
2 жыл бұрын
thank you bro, I am using your videos to learn java, very helpfull to me, good luck, keep up the good work !!!
@juanbaquero8628
6 ай бұрын
Cristal clear! Thanks bro!
@danny.3036
3 жыл бұрын
Thanks, Bro! ☕ You're awesome!
@hgatl
3 жыл бұрын
awesome video
@jerryysen
6 ай бұрын
the car dealership example
@NotYou-xk2bo
2 жыл бұрын
Another great and easy to understand video
@revanthk61
3 жыл бұрын
Best video to learn about Abstract Classes.
@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.
@GeoffreyofCastille
3 жыл бұрын
Great explanation, very helpful!
@Armadder
9 ай бұрын
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.
@deeplife9654
Жыл бұрын
Just made a comment for prayer to KZitem algorithm ❤❤❤❤❤
@elionayzuridasilveira4140
3 ай бұрын
Thank you man for this new old tutorial
@BereketBelete-o2d
28 күн бұрын
Brilliant! Keep it up!
@augischadiegils.5109
3 жыл бұрын
Another awesome video thanks bro :)
@jennethestrada2232
10 ай бұрын
great
@chiyuzhang3089
Жыл бұрын
simple and awesome like always
@yonasfikadie5323
Жыл бұрын
nice ❤💛💚
@Bastyanul
2 жыл бұрын
Thanks for the video and the knowledge you offer!
@rafalgontarski3254
Жыл бұрын
That's awesome
@dreamh928
4 ай бұрын
I understand abstraction like, A parent(superclass) has money and wants to give this money( variables/Methods) to his children and each child uses his money as he wants!
@ymmaaarrrr
Жыл бұрын
nice video
@nouraldinurfan5024
11 күн бұрын
thanks for helping us.
@Muhammadfaisal-kd9kx
9 ай бұрын
easy to understand thankyou
@PetiteKero
11 ай бұрын
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)?
@dllm3tommy741
10 ай бұрын
Thanks for the video
@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
5 ай бұрын
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
@hachemhannechi6422
2 жыл бұрын
Good videos , very helpful , we need a mysql tutorial to complete the full stack dev
@sanskritigiri
9 ай бұрын
This was a great example
@david_jn24
Жыл бұрын
number one
@soumelee5661
Жыл бұрын
i finally understand abstract class, like the "why?" of this topic
@huylee4721
2 ай бұрын
nice
@Sin1kicune
Жыл бұрын
nice job bro
@jasonpoonia
2 жыл бұрын
You are a legend!
@huuloc8719
2 жыл бұрын
Nice.
@Comedianalexj
11 ай бұрын
Nice bro... this made it sooo simple to understand! Thx
@kardrynka
Жыл бұрын
Perfect
@user-wv1in8fq4b
7 ай бұрын
liking it
@deez-48
Жыл бұрын
thanks that helped me remember the concept
@user-wf8pv2rb3k
6 ай бұрын
best channel on youtube.
@nawfalnjm5699
3 жыл бұрын
great video , thank you !
@yousifalisyed5504
Жыл бұрын
Thanks for the explanation
@Gabriel-xq6tn
3 ай бұрын
Good explanation. Do you need to have a regular method inside an abstract class since an abstract class cannot instantiate objects?
@aiueo8962
Жыл бұрын
anjay, langsung paham gw, keren bang, lanjutkan kerjamu
@nycolleamaral581
6 ай бұрын
thanks you, I am brasilian and dont understanding ingles very, but you tell so good!
@kemann3815
2 жыл бұрын
Extraordinary work
@mohammadalaskari700
2 жыл бұрын
This really helped me. Thank you.
@developerjunior446
3 жыл бұрын
Super
@usfeed4902
3 жыл бұрын
great ! thanks !
@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
3 жыл бұрын
Thou shall not use many 'else if' statements
@jahed1311
2 жыл бұрын
youre just great .
@supersakib62
2 жыл бұрын
Thanks for clear cut explanation.
@YouTube4u95
11 ай бұрын
Very helpful, thank you.
@sergeyb6071
3 жыл бұрын
very well explained!
@FarizDarari
2 жыл бұрын
Many thanks! Stay healthy, stay happy, Bro Teacher!
@CSstudent_1001
3 ай бұрын
👏👏👏👏
@luisantonio7191
Жыл бұрын
Thanks for the class
@ericamuhammad5082
2 жыл бұрын
Thank you!
@immortlreacts1740
Жыл бұрын
appreciate it!
@janel-qy1ex
2 жыл бұрын
👍👍👍👍👍👍
@justinbanza4751
3 жыл бұрын
very useful
@tamekkaknuth9612
Жыл бұрын
Nice job again!!
@soumyadeeppatra5478
2 жыл бұрын
cool bro
@aryan-ko3il
10 ай бұрын
Love you, from France
@user-ju2tj3kr6n
3 ай бұрын
Thanks
@TheEvertonDias
Жыл бұрын
Thanks, Bro!
@thomas_1611
Жыл бұрын
Bro is the best
@arkamukhopadhyay2177
3 жыл бұрын
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
3 жыл бұрын
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
3 жыл бұрын
@@BroCodez Thanks!!! 👍
@waleedahmed396
3 жыл бұрын
@@arkamukhopadhyay2177 abstract class can hove normal method
@aliozeir4546
2 жыл бұрын
perfect
@user-zq6yx7of5f
Жыл бұрын
Thank you very much!!
@jessepen2
Жыл бұрын
THANKS BRO!
@wallstreetbets7741
2 жыл бұрын
gd
@miuwai6211
2 жыл бұрын
Clear explanation. Thank you Bro -:)
@mahmoudelsayed2325
3 жыл бұрын
appreciated man!
@rinadem5219
Жыл бұрын
best ever
@omxln237
Жыл бұрын
Hi there was watching this on the playlist I've gotten confused with interfaces and abstraction Do you have any websites or videos explaining the main differences ? Thankyou in advance (videos are really helpful saving me on my CS degree as a first year xD)
@lmao9619
3 ай бұрын
best person in the world
@devbhatii
7 күн бұрын
crazy
@LudObrzygowiony
10 ай бұрын
cool vid
@davidkuda7074
2 жыл бұрын
Nice bro, thanks!
@tamekkaknuth9612
Жыл бұрын
thank you !!
@xXMaDGaMeR
2 жыл бұрын
love you bro
@zaqimegantara1177
17 күн бұрын
Do we have to make our superclass abstract in every situation?
Пікірлер: 200