OOP 5 | Abstract Classes, Interfaces, Annotations

  Рет қаралды 193,499

Kunal Kushwaha

Kunal Kushwaha

Күн бұрын

This fifth video of the complete object oriented programming (#OOP) course in Java will clear some of the most important concepts for you about multiple inheritance.
Covering abstract classes, interfaces, annotations, and more!
Complete OOP playlist: • Object Oriented Progra...
Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
👉 Resources
- Join Replit: join.replit.com/kunal-kushwaha
- Complete Java DSA playlist: • Java + DSA + Interview...
- Code, Assignments, & Notes: github.com/kunal-kushwaha/DSA...
➡️ Connect with me: kunalkushwaha.com
=========================================
Timestamps:
0:00:00 Introduction
0:00:30 Multiple Inheritance Problem
0:01:08 Abstract Classes
0:06:38 Example of Abstract Classes
0:16:45 Abstract Constructors
0:17:15 Object of an Abstract Class
0:17:40 Abstract Static Methods
0:18:04 Static Methods in Abstract Classes
0:21:52 "final" Keyword in Abstract Class
0:24:18 Multiple Inheritance using Abstract Classes
0:25:10 Interfaces
0:31:29 Example of Interfaces
0:43:41 Variable of Interface Type
0:47:42 Separate Classes in Same Interface
0:55:01 Extending Interfaces
0:57:18 Annotations
1:02:05 Important point regarding Static Interface methods
1:06:17 Nested Interfaces
1:09:31 Outro
#placement #dsa #interviews

Пікірлер: 291
@piyush9266
@piyush9266 2 жыл бұрын
Salute u...real Hero.. india needs people like u who can change the destiny of this country by quality education..I salute your dedication and selfless service not only for ur countrymen but for all human beings.may God bless u with all happiness of this universe🙏🙏🙏🙏🙏😊
@supriyaannapure1535
@supriyaannapure1535 2 жыл бұрын
YES,i agree
@the_inspiration_club
@the_inspiration_club 2 жыл бұрын
R u from thapar@piysh
@piyush9266
@piyush9266 2 жыл бұрын
@@the_inspiration_club no, i am working employee.
@sairamsubrahmanya4946
@sairamsubrahmanya4946 2 жыл бұрын
Yes I agree hei is superb.
@in-sanitygamer4208
@in-sanitygamer4208 Жыл бұрын
No bro the whole world needs the SuperKunal man
@harshsolanki703
@harshsolanki703 2 жыл бұрын
This was the hell of a video. Literally THE BEST video for OOP. OOP couldn't be explained any better than this. 🔥🔥
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
It do be like that
@ashutoshswain138
@ashutoshswain138 2 жыл бұрын
@@KunalKushwaha bro why don't you add new videos in this java bootcamp like before , please complete this bootcamp
@bjugdbjk
@bjugdbjk 2 жыл бұрын
Oh, man !! Most probably this gonna be the fastest channel to reach a million subscribers comes under the non-entertainment category !! Kudos to u bro !! Extraordinary effort !! U will be remembered.
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Thank You 🙏
@jayprakashjaiswaldeptofcom1250
@jayprakashjaiswaldeptofcom1250 Жыл бұрын
@@KunalKushwaha bhaiya graph sab karado yarr,please
@Cono314da
@Cono314da Жыл бұрын
@@KunalKushwaha at 23:15 why cant it be "final int VALUE = 30;", rather than value being initialized in the constructor?
@vinathasree168
@vinathasree168 Жыл бұрын
@@Cono314da can't be inherited, so we put it in a constructor to initialize it
@shubhamagarwal7876
@shubhamagarwal7876 2 жыл бұрын
Kunal I am having 2.5 years of experience in IT and now preparing for a job switch. I am following all your videos religiously. The content you are providing is just priceless. Your way of teaching is so lucid that nothing else than series is required. I am so much enjoying it like a web series , and yes learning was never so much of fun. I India I think we need no college we only need Kunal to make quality engineers. In college they cannot make these these things clear in 4 years and you did it in just 40 min. God bless you . Keep sharing your learnings .
@akshaytakrani6886
@akshaytakrani6886 2 жыл бұрын
Ocean of knowledge in this video about Interfaces and Abstract classes. Love the way you teach ❤
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Thank You
@jomamusk9791
@jomamusk9791 Жыл бұрын
There can never be a better example than the MyCar Example. What and example! Most concepts Kunal taught till now are there in this single example. You are the Best!!!!
@KunalKushwaha
@KunalKushwaha Жыл бұрын
Thank You!
@amitkumarsharma5710
@amitkumarsharma5710 Жыл бұрын
exact at 12:13 Kunal just thought of his love😍
@aritrachatterjee147
@aritrachatterjee147 2 жыл бұрын
Mann take some rest brother we need you for long term coz there is very few teachers like you in India ... Mann people upload 1 video on a week and say that quality and you are uploading 2 videos a day still maintaining that top notch quality... Kudos to you man ... ❤️
@adbhuthareddy
@adbhuthareddy 2 жыл бұрын
That's what I'm always saying bro 🥲 Completely agree 💯 with you..
@hehehech
@hehehech 8 күн бұрын
He took your comment seriously...! ;)
@aritrachatterjee147
@aritrachatterjee147 8 күн бұрын
@@hehehech 😂😂😂 man took it very seriously that instead of rest he gone for complete hibernation 😂
@hariaseri6071
@hariaseri6071 2 жыл бұрын
I really don't have any words yr I mean how can you work so hard and give such kind of content just for free . Thanks a lot bro
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Thank you so much 😀
@anchitsingla9761
@anchitsingla9761 2 жыл бұрын
Woah! 2 videos in One day....Great work and Thanks again a lot for this course.. ❤️
@flyfly11111
@flyfly11111 Жыл бұрын
Hi Kunal, I recently founded your channel, I like the way you explain the core concepts. It's really very helpful. Thank you so much. Please keep this continue
@avinashsingh7722
@avinashsingh7722 2 жыл бұрын
Thankyou so much Kunal this is the best video i found on abstract classes and interfaces. Learnt a lot from this. ;) Message to fellow people just stay away from involving in controversy. Our main motive should be to learn from anywhere we can. Thankyu kunal for providing top-notch content on OOP.
@Sumit-lr1qj
@Sumit-lr1qj 2 жыл бұрын
Your Content Quality is just superb along with your teaching skills.. Keep it Up . This is Probably the best programming channel in India right now in terms of quality content
@AjitKumar-gn1se
@AjitKumar-gn1se 3 ай бұрын
That's what I call real-world teaching. Exceptionally well!...... 🙏👌👏👏👏👏👏
@naveenbommula9325
@naveenbommula9325 2 жыл бұрын
Fell in love with your consistency and knowledge sharing.👏
@S_SwasK
@S_SwasK 2 ай бұрын
Got a bit confused in the Car Engine Brake part , had to rewatch that part 3 times , but understood well practicing with you , Thank you for in-depth Explanations and not just another Tutorial.
@sayakbasak587
@sayakbasak587 8 ай бұрын
there is no one making such a detailed video like you did.
@TuxTuxedo-oc9kg
@TuxTuxedo-oc9kg Жыл бұрын
this is the most awesome java tutorial I have seen on youtube so far. thank you so much!
@parth_chovatiya
@parth_chovatiya Жыл бұрын
1:02:11 Static method can inherited If you declare, another static method with same signature in derived class than the static method of superclass will be hidden, and any call to that static method in subclass will go to static method declared in that class itself.
@uditbhaskar
@uditbhaskar Жыл бұрын
Nice joke buddy, good luck with java.
@mohanprajapati2051
@mohanprajapati2051 Жыл бұрын
@@uditbhaskar The only difference with inherited static (class) methods and inherited non-static (instance) methods is that when you write a new static method with the same signature, the old static method is just hidden, not overridden. If you declare the same method in a subclass, you hide the superclass method instead of overriding it. Static methods are not polymorphic. At the compile time, the static method will be statically linked.
@yashsingh3040
@yashsingh3040 Жыл бұрын
@@uditbhaskar good luck for your java.
@uditbhaskar
@uditbhaskar Жыл бұрын
@@yashsingh3040 Rip english
@applein289
@applein289 Жыл бұрын
You don't have to mention it that u have to create this course to be the best on youtube, because it is. By your videos i get detailed info of every topic, Loved your course😍
@aishwaryabalyaya6966
@aishwaryabalyaya6966 Жыл бұрын
Best OOPS videos on the internet!! More power to you sir!!
@untold8718
@untold8718 3 ай бұрын
You changed me a lot, your teachings are a blessing for me, now i am teaching students on behalf of getting knowledge from you☺
@rohanbhujbal6327
@rohanbhujbal6327 2 жыл бұрын
ngl this is the best DS and java course I've ever seen. tbh I'm struggling a little bit but ig i need to do more practice and exploring
@dhamotharan1734
@dhamotharan1734 10 ай бұрын
Great man! Thanks for explaining these complex topics
@nitwaalebhaiya
@nitwaalebhaiya 2 жыл бұрын
🙏🙏 My concepts are getting stronger by your videos.
@ManhwaXin
@ManhwaXin 2 жыл бұрын
Brother, you video are the ones help me the most understanding OOP.
@yogpooja-vq1pp
@yogpooja-vq1pp Жыл бұрын
Thank you, Kunal. and yes it is the best, I have ever found.
@Helly_Patel
@Helly_Patel 2 жыл бұрын
Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!
@lohithkumar5292
@lohithkumar5292 2 жыл бұрын
Great content! Looking forward for future videos.
@2KHuman
@2KHuman 2 жыл бұрын
Kunal bro your teaching method is another LeveL and also your are way better than IIT, NIT Professors 🔥
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Maine bhi suna hai ki kaafi IIT ke professors ko padhana nahi aata. Not saying all, but majority. Might be some good ones too.
@prakashyemineni5199
@prakashyemineni5199 Жыл бұрын
So many doubts got resolved with this playlist, Thank you Brother 🙏.
@ankitkushwah1879
@ankitkushwah1879 11 ай бұрын
Bro what a tutor! Amazing.. You really made me fall in love with dsa..
@Syed_Shahzil
@Syed_Shahzil 6 ай бұрын
Best Explanation, Best Course by the One and only Hero Kunal. Thank you
@nalinkhanna3318
@nalinkhanna3318 Ай бұрын
The best OOP Playlist in java
@sippy8482
@sippy8482 2 жыл бұрын
Your dedication ❤️
@lingrajpatil9242
@lingrajpatil9242 2 жыл бұрын
Thanks for sharing your valuable knowledge free of cost😊 wishing you d best of best🙏
@usenmfonuko3271
@usenmfonuko3271 4 ай бұрын
Thank you so much Kunal
@34adnanali26
@34adnanali26 16 күн бұрын
this is free and so useful for interviews prep
@subhrajyotidas2569
@subhrajyotidas2569 8 ай бұрын
that car interface explanation was just fabulous!
@shreyagupta1303
@shreyagupta1303 Жыл бұрын
best teacher ever!! hats off..
@amanjain0842
@amanjain0842 Жыл бұрын
great great great explanation of Interfaces using examples
@devesh819
@devesh819 2 жыл бұрын
You literally rocked it man two two blockbusters in a single day ... Hats off too u for consistency again 👍👍
@muhammadabuzar7910
@muhammadabuzar7910 10 ай бұрын
This has been the best DSA course so far for me, I have never loved OOP before🤗
@user-jy1yu4kz9p
@user-jy1yu4kz9p 6 ай бұрын
Notes bhej de bhai
@sameermd5779
@sameermd5779 2 жыл бұрын
all are awesome lectures
@abrarfaisal1393
@abrarfaisal1393 Жыл бұрын
Hey kunal, a lot of appreciation man, did a great job. But its' hard to wait for upcoming videos for advanced algorithm, DP, trees and graphs videos etc.
@BackEndGenius
@BackEndGenius Жыл бұрын
Best explanation on Interfaces.
@_hulk748
@_hulk748 Жыл бұрын
Great Explanation Sir✨❤ Please continue the DSA series Sir🙏🙏
@muhammadumair6443
@muhammadumair6443 10 ай бұрын
i failed in my interview because i did not come across by your channel. I did not know all of the concepts you have taught in this video and interviewer was asking all of these stuff. Now, i will ace that interview next time :) Thanks alot. Best series ever!
@user-hm6mv6bx3e
@user-hm6mv6bx3e 5 ай бұрын
What can I say another great content like everybody knows.🙌
@arijitmohapatra147
@arijitmohapatra147 2 жыл бұрын
Thanks for putting a lot of effort for us ❤️💕☺️
@Krishna-rt5yf
@Krishna-rt5yf 2 жыл бұрын
Just Amazing 🙌🙌
@anayoezeme2585
@anayoezeme2585 2 ай бұрын
Simply amazing.
@ashvinkumhar5819
@ashvinkumhar5819 Жыл бұрын
As always the best one !!
@vigyanta94
@vigyanta94 7 ай бұрын
Thanks Kunal 🙏🏽
@tejasdeore8340
@tejasdeore8340 2 жыл бұрын
I really want u to collaborate with Ratan Tata sir. To take future of Indian students to next level. Because I really feel u have so many similar traits I have noticed in Ratan Tata sir. Please do send him a mail . BECAUSE I FEEL U ARE NOT THE PERSON WHO WILL RUN BEHIND THE MONEY AND LUXURY . I feel u r more like APJ ABDUL kalam sir and Ratan Tata sir. Who wants Indians to do good . But u r not coming forward because we are not good with education system and political agendas. People praise sundar Pichai sir ( to be honest I do as well ) . But u deserves more love and admiration . Because that guy doing it for him self and for the organisation he is working with. But u r doing it for social cause . I WISH I HAD MET SOME ONE LIKE U DURING MY ENGINEERING DAYS.
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
how do I get in touch
@tejasdeore8340
@tejasdeore8340 2 жыл бұрын
@@KunalKushwaha don't know if my comments are getting deleted or what . But unable to see posted comment 😰
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
not at all, see I liked it too
@tejasdeore8340
@tejasdeore8340 2 жыл бұрын
@@KunalKushwaha I don't know why but my comments are getting disappeared automatically . I dm u on instagram please do check. Bro for privacy reasons my comments getting down . Unable to share address and email here so have dm u on instagram.
@shanteshwarsangave9624
@shanteshwarsangave9624 4 ай бұрын
This is THE BEST COURSE of OOPS on KZbin
@poojasharma-cc5ur
@poojasharma-cc5ur 2 ай бұрын
Not only OOPS bro , DSA also though some topics like graphs &heaps are not covered. We are waiting for these videos🙃
@arshadansariv
@arshadansariv 2 жыл бұрын
You are Probably the best., thank you🤗🙌
@jamespeterson7824
@jamespeterson7824 Жыл бұрын
Great explanation in easy to understand manner...thanks @kunal
@LoliceUwU
@LoliceUwU Жыл бұрын
Amazing video Kunal! Tysm! Hope that one day, I can also be almost as good as you 🥸
@mayurrokade5712
@mayurrokade5712 Ай бұрын
The best video.
@raghavmangla2481
@raghavmangla2481 2 жыл бұрын
Great content as always
@tusharlokhande4544
@tusharlokhande4544 2 жыл бұрын
Thanks Bro, It Helps me a lot.❤
@janvisingh5514
@janvisingh5514 7 ай бұрын
this is the best oops playlist
@ramkrishnaprajapati4384
@ramkrishnaprajapati4384 6 ай бұрын
great to have this..
@valoclips5376
@valoclips5376 Жыл бұрын
Thank you kk...you are awesome
@meetsoni1938
@meetsoni1938 2 жыл бұрын
Thanks kunal 🔥🔥
@hritikapal683
@hritikapal683 2 жыл бұрын
Man you're incredible 2 videos in a day!🙆🏻‍♀️🔥 Hats off to your dedication ❤️
@wasim_17
@wasim_17 6 ай бұрын
Good video. Explained it nicely.
@spicy46475
@spicy46475 6 ай бұрын
simply amazing
@agyaani8060
@agyaani8060 2 жыл бұрын
Loved it❤❤
@nirvattaenterprises3047
@nirvattaenterprises3047 Жыл бұрын
Thanks a lot for these videos
@adityaSharma-ib1il
@adityaSharma-ib1il Жыл бұрын
Bro i liked your teaching ways and efforts . Thank you bro
@sai644
@sai644 25 күн бұрын
thank you so much!!!!!!!!!!
@harsh_Vashisht_
@harsh_Vashisht_ 7 ай бұрын
Thanks Kunal
@debz_exe
@debz_exe 10 ай бұрын
Love the content. Man literally thought for eternity before putting up a girl's name and finally gave up. True developer moment.
@vaishnavijahagirdar3835
@vaishnavijahagirdar3835 2 жыл бұрын
Dsa in 15 days!..plz continue..placements going on
@SaddestMoments01
@SaddestMoments01 6 ай бұрын
You're really a cause of prideness of India..
@mandarpandit8786
@mandarpandit8786 2 жыл бұрын
Thank you Kunal ;)
@anjalithakur_12
@anjalithakur_12 Жыл бұрын
Great video enjoyed it
@Cono314da
@Cono314da Жыл бұрын
@KunalKushwaha, at 23:15 why cant it be "final int VALUE = 30;", rather than value being initialized in the constructor?
@yashkoolwal196
@yashkoolwal196 2 жыл бұрын
killed it dope explanations helped me a lot!!
@xzist2342
@xzist2342 3 ай бұрын
Thanks alot
@adeditz3607
@adeditz3607 Жыл бұрын
From TamilNadu 💥😘 I Have Complete OOPS in Java , I Like Your Teaching 😅💥
@AnimatedBollywood
@AnimatedBollywood Жыл бұрын
Don't worry I am with you ..
@aswinsrikanth408
@aswinsrikanth408 9 ай бұрын
me too followin for bout 2 years now came to revise these topics
@skmemes-kl1bd
@skmemes-kl1bd 2 ай бұрын
Nice one ❤
@saileelakrishna329
@saileelakrishna329 2 жыл бұрын
Thanks for your explanation in English....
@Student-zc7hb
@Student-zc7hb 2 жыл бұрын
Sir thank you so much 🙂😌
@mohamedabdulla8097
@mohamedabdulla8097 Жыл бұрын
Great video.
@432prameela3
@432prameela3 Жыл бұрын
Thank you ❤️
@vishalkumaranand3279
@vishalkumaranand3279 Жыл бұрын
47:50 Brother, if you made different classes that implements different interfaces then how it remains multiple inheritance ,what was the purpose of interfaces? Please explain.
@Peter-00.02
@Peter-00.02 7 ай бұрын
worth to watch.
@donrenachinedum6079
@donrenachinedum6079 Жыл бұрын
Thanks
@DivyanshGemini
@DivyanshGemini 2 ай бұрын
@KunalKushwaha *Not getting AutoGenerated English subtitles in any of your video.* (May be due to video language set to Hindi)
@sudarshan3901
@sudarshan3901 Жыл бұрын
Great video
@ridoychandradey8337
@ridoychandradey8337 Жыл бұрын
Love this video.
@AnimatedBollywood
@AnimatedBollywood Жыл бұрын
Don't worry I am with you ..
@ajbchannel9719
@ajbchannel9719 2 жыл бұрын
OMG!the he explains is lucid
@user-ky5uf6dt4z
@user-ky5uf6dt4z 3 ай бұрын
Good One 🤟
@sravansunkara9145
@sravansunkara9145 Жыл бұрын
thank you very much
@anuchethantc1990
@anuchethantc1990 10 ай бұрын
thank you
@vineela-meduri
@vineela-meduri 6 ай бұрын
Hi Kunal, can you please include topics related to comparable, comparator, finalize and finally??
@anubhavgarg1728
@anubhavgarg1728 11 ай бұрын
At 50:20 I wanna know why did we create a reference of Engine interface in NiceCar class? I have a possible explanation but not sure if it is right. According to me we did that because we have also created a constructor which instantiates the engine interface reference to an object of a concrete class which has implemented the engine interface. Thus, if we simply create a reference of engine interface then we are going to be able to assign it to an object of any class which has implemented the engine interface eg Upcasting will handle the implicit casting of an object of a class type such as ElectricEngine to a reference of Engine interface. In other case if we create a reference of class such as powerEngine then at the instantiation time when we try to access the constructor and assign this reference variable to an instance of Electric Engine type, it will simply display an error.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 469 М.
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 10 МЛН
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 11 МЛН
OOP 3 | Principles - Inheritance, Polymorphism, Encapsulation, Abstraction
2:12:51
Why I Moved Abroad for My Job
11:57
Kunal Kushwaha
Рет қаралды 46 М.
Abstract Classes vs Interfaces (Java)
9:43
The Code Hard Truth
Рет қаралды 204 М.
Binary Search Algorithm - Theory + Code
58:16
Kunal Kushwaha
Рет қаралды 456 М.
OOP 4 | Access Control, In-built Packages, Object Class
50:45
Kunal Kushwaha
Рет қаралды 149 М.
Strings and StringBuilder in Java
1:27:29
Kunal Kushwaha
Рет қаралды 380 М.
Java's Creators Rejected Multiple Inheritance - Here's Why
13:14
Coding with John
Рет қаралды 66 М.