OOP 2 | Packages, Static, Singleton Class, In-built Methods

  Рет қаралды 363,211

Kunal Kushwaha

Kunal Kushwaha

Күн бұрын

This second video of the complete object oriented programming (#OOP) course in Java will clear some of the most important concepts for you.
Covering packages, static elements, singleton class, in-built methods, and more in an easy to understand story based approach!
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:03:00 Packages example
0:05:30 Java Packages
0:14:22 "import" statement
0:18:57 Static elements example
0:24:09 "static" in Java
0:31:25 Static variable meaning
0:32:42 Non-static member inside a static
0:40:02 Static member inside a non-static
0:47:36 "this" keyword inside static
0:49:29 Initialisation of static variables
0:54:33 Inner Classes
1:05:32 Internal working of some statements
1:10:40 Singleton Class
1:18:03 Outro
#placement #dsa #interviews

Пікірлер: 1 100
@SomnathPattnaik
@SomnathPattnaik 2 ай бұрын
Static is like vegetarian who just can't have Non Vegetarian food whereas a Non Static is like Non vegetarian can have Vegetarian food with non vegetarian food or pure vegetarian food.
@jiteshkanojia6824
@jiteshkanojia6824 2 жыл бұрын
These OOP videos have changed my perspective from cracking FAANG to admiring the beauty of programming and building stuff :)
@annapoorneswarihp3657
@annapoorneswarihp3657 2 жыл бұрын
So true!!!!!!
@ArunKumar-td4xf
@ArunKumar-td4xf Жыл бұрын
can anyone clear my doubt ,without creating obj i can't get population =2 instead i get o for not initialising obj .
@fawazj
@fawazj Жыл бұрын
@@ArunKumar-td4xf Because population increasing is dependent on how many humans were created in your object; that's why you get 0 when you don't initialize any objects
@udaysingh2929
@udaysingh2929 Жыл бұрын
please tell where can i find his text notes
@ankur07M
@ankur07M 8 ай бұрын
@@udaysingh2929there is a GitHub repository link in the video description where you can access everything
@sanatani_girl01
@sanatani_girl01 17 күн бұрын
This guy is the only person on the Indian tech arena who's here just for the love of programming. Others are just banking on the insecurities of us confused and vulnerable tech students for their own benefits. He is so crystal clear in his explanation that even I, a layman, could teach OOPs to ICSE 10th standard students and even some of my batchmates. He's here to make history.
@anikethpaul3657
@anikethpaul3657 2 жыл бұрын
46:33 - "That was a great example" My mind - It will stay in my brain for next 100 year, what an example.
@AmanKumar-kz1rn
@AmanKumar-kz1rn 2 жыл бұрын
Thank god you are not making "one shot oops videos" like other youtubers did, your videos legit worth to watch. The entire series is top notch, thanks to you for providing such a great content on this platform for FREE :)
@rushikeshghumare2779
@rushikeshghumare2779 2 жыл бұрын
Addicted to complete the series because of your teaching skills.
@aayushrajwade6039
@aayushrajwade6039 2 жыл бұрын
Man you really taught the static concept quite well like the other concepts. The depth of the concepts taught is by far the best. And dude hats off to the effort you have put in the videos, its visible. So thanks a lot brother !!!!!
@MahendraSahu-jh5sy
@MahendraSahu-jh5sy 2 жыл бұрын
The way you tell the story of greeting() and fun2() was amazing, no one can explain it like this 👍
@achchutans1661
@achchutans1661 Жыл бұрын
44:44 The best story one can ever frame about static vs non-static items of a class
@harshsharma0409
@harshsharma0409 Жыл бұрын
Can you tell where we can find the notes
@udaysingh2929
@udaysingh2929 Жыл бұрын
@@harshsharma0409 did you find notes?
@harshsharma0409
@harshsharma0409 Жыл бұрын
@@udaysingh2929 no
@debasisdash861
@debasisdash861 9 ай бұрын
Hey I just need this little help . I just can't understand the part where void fun 2 and both greeting are non static and they were converted to static by getting an object but who is providing the object is it static void fun or the public class main . And does void fun 2 is the part of static void fun Please help me 😢
@jasdevvirdi5924
@jasdevvirdi5924 9 ай бұрын
@@debasisdash861 I think it's from public class Main. Correcrt me if i am wrong.
@meetsoni1938
@meetsoni1938 2 жыл бұрын
Your efforts are 💯💯💯 appreciable I loved your deep level teaching I don't care about the length of videos I just want deep learning about all the concepts and you are the one who give it to me 🔥🔥🔥
@rohankucheriya
@rohankucheriya Жыл бұрын
Kunal, this is my first 1 hour long video I've watched on your channel and I'd say time passed so fast, its just like I was hooked since the time I played it, your content is so engaging. Keep up the good work!
@Motivationalvideos___________
@Motivationalvideos___________ Жыл бұрын
The great thing that happened to me this year is I found your channel. Love you keep doing the great work and thank you so much.
@adityaroshan1688
@adityaroshan1688 Жыл бұрын
Completed Day2! Thank you very much! You taught the mind set!
@NikhilKumar-mt6fb
@NikhilKumar-mt6fb Жыл бұрын
When you actually explaining the static portion I'm just amazed...
@SOUMYAAGRAWALBBTCS
@SOUMYAAGRAWALBBTCS 2 жыл бұрын
3 years in college and never had such strong grasp of oops concepts till now. Thanks.
@annapoorneswarihp3657
@annapoorneswarihp3657 2 жыл бұрын
I started this playlist to learn OOP concepts, I'm falling in love with Java now. You are a great teacher kunal.
@raktimghosal4562
@raktimghosal4562 2 жыл бұрын
I have only seen other KZbinr posting shorts with the rate kunal is posting this OOP videos. Awesome 🔥
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
More to come!
@vinayakad3796
@vinayakad3796 2 жыл бұрын
Best OOP series ever!!! My college took a whole sem to explain this and concepts were still not clear. This man cleared all my doubts in a 10 hour series. He is the messiah!!!!
@Lolchuj
@Lolchuj Жыл бұрын
an amount of time and effort put in this series of lessons is incredible and fascinating at the same time. really love it
@rubensingh6809
@rubensingh6809 10 ай бұрын
This whole series has been a godsend honestly. Thank you for such a thorough tutorial. Grab a cup of coffee and put your phone away guys. Concentrate fully. This is a gold mine
@sauravkumarjha6162
@sauravkumarjha6162 2 жыл бұрын
wow man two long videos(above 3hrs) in a day on the most important interview 's topic OOPS with a great explanation , love you kunal bhaiya❤
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
more to come
@chinmaychaudhari4143
@chinmaychaudhari4143 2 жыл бұрын
Bro your consistency and way of teaching made it very delightful course 🤩🤩
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Thank you so much 😀
@bhavesh099
@bhavesh099 Жыл бұрын
@@KunalKushwaha That was 6 moths back and you have not finished it yet ....wtf
@tejaskayastha9816
@tejaskayastha9816 Жыл бұрын
@@KunalKushwaha Kkokkko you k
@tejaskayastha9816
@tejaskayastha9816 Жыл бұрын
Kkokkko to k ka k k k ka k m k ka o
@tejaskayastha9816
@tejaskayastha9816 Жыл бұрын
Kkkk kk o k k ik k liye 😂 kkkkkkkkk k
@sakethram4043
@sakethram4043 7 ай бұрын
Hands down this is one of the best OOP tutorial on youtube. Amazing!!!
@SouravGupta-tw1bp
@SouravGupta-tw1bp Жыл бұрын
the word "static", so minimalistic but makes so much of difference. Thanks for making me understand it
@hritikapal683
@hritikapal683 2 жыл бұрын
I think this is the best diwali gift we got as your student thanks a bunch man!😍
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Thank you so much 😀
@arijitprasad7730
@arijitprasad7730 2 жыл бұрын
42:00 kunal is showing his acting skill🤣🤣Your way of teaching is very unique & awesome!!😍😍
@codex8500
@codex8500 Жыл бұрын
he opened up everything in front of the eyes its feel like we can explain the complete programming language how and why each component is working. amazing Kunal.
@sundaram1405
@sundaram1405 Жыл бұрын
This is really crazy, blown my mind of clearly understanding the basics! eagerly waiting for the HashMap and DP videos💙
@08_prernadhayfule40
@08_prernadhayfule40 10 ай бұрын
The story you're telling to explain static was awesome 😊
@KunalKushwaha
@KunalKushwaha 10 ай бұрын
Glad you liked it
@harshagarwal7832
@harshagarwal7832 2 жыл бұрын
Is speed se video aiega to bas 😌😌🤩🤩aur kya chaiye bande ko
@shreyasharma3003
@shreyasharma3003 2 жыл бұрын
never had so much fun learning .....thank you so much for this course and the efforts that you are putting into it
@subhajitadhikary155
@subhajitadhikary155 4 ай бұрын
The best part of the series is, he is giving proper reasons for each of the concepts he is telling, appreciate that bro. Thanks a lot for giving such awesome content out there.
@PrashantKumar-mq3jf
@PrashantKumar-mq3jf 7 ай бұрын
This OOP's playlist is totally deep. All small-small concepts are covered by kunal. Amazing playlist.
@KunalKushwaha
@KunalKushwaha 7 ай бұрын
You’re welcome
@buildwithcode7824
@buildwithcode7824 Жыл бұрын
when you were saying in all your previous videos that you will explain a specific topic in the OOP lecture i used to get frustrated several times. but now after watching this video hats off to you man. loving it, watched 2 lectures straight without getting exhausted. you totally nailed it man
@emekaukwuoma3359
@emekaukwuoma3359 2 жыл бұрын
The best OOP series in java so far. Great job Kunal.
@nartcissist_flower6603
@nartcissist_flower6603 Жыл бұрын
Your whole playlist is amazing please keep up the good work i have shared it with all my friends it's absolutely necessary to watch this for all students ❤️❤️❤️
@asishmaity5990
@asishmaity5990 2 жыл бұрын
First comment 😎..this bootcamp is like a rollercoaster journey .. really appreciate man ur hardwork ... ❤️
@dsiconversations9817
@dsiconversations9817 8 ай бұрын
Usually I don't comment on any youtube videos. I just watch and leave. But this guy is amazing. For the 1st time in my life, I understood what is static and why it is used. I was tired of searching and asking people what is static and everyone used to say "It can be called without creating object" but no one knew what is the reason, but today this talented guy has explained in such a better way that no one will forget it. Thanks Kunal for clearing my doubts. It is really helpful. No other course can beat this course and not even close. Good Luck man ❤
@shivamamin1126
@shivamamin1126 Жыл бұрын
I understand why you were saying I will cover it in OOP. All the concepts are cleared by your amazing teaching skills. Love it a lot.
@sarthakjaiswal8829
@sarthakjaiswal8829 2 жыл бұрын
Just enjoying the learning process 🙏🙏👍
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Wonderful
@trevorPhillips284
@trevorPhillips284 2 жыл бұрын
You are probably one of the best teachers i have seen in a long time, who makes learning interesting . Keep up the good work 🙏🏻
@anikethpaul3657
@anikethpaul3657 2 жыл бұрын
Mr. robot?
@trevorPhillips284
@trevorPhillips284 2 жыл бұрын
@@anikethpaul3657 yeah, despite being a brilliant hacker I find java OOPS difficult hence I'm here.
@anikethpaul3657
@anikethpaul3657 2 жыл бұрын
@@trevorPhillips284 lmaooo🤣🤣🤣
@geetankarkarmakar378
@geetankarkarmakar378 Жыл бұрын
The best video of OOP so far, on the internet ! Thank You 🙏
@boolcrewcrew3646
@boolcrewcrew3646 Жыл бұрын
I love the way you explain concepts in such depth
@annapoorneswarihp3657
@annapoorneswarihp3657 2 жыл бұрын
Other videos out there are monotonous, Though I wont be in the mood to study, I sit with my laptop playing these videos sometimes, this guy's way of teaching make everything seem so easy! Lots of love
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Glad you like them!
@Window2015
@Window2015 5 ай бұрын
Personal timestamp: Day 1) 40:00 Day 2) 54:00 Day 3) 1:19:12
@Neeraj-jm6sf
@Neeraj-jm6sf 6 ай бұрын
I am enjoying oops and learning a lot of concepts from Kunal. His Teaching Skills are next level.
@ashutoshrudraksh2977
@ashutoshrudraksh2977 Жыл бұрын
Cracking interview mindset has been changed into curiosity for learning and building stuff. We all are loving it KK, Keep up the good work!
@rimaansh
@rimaansh 2 жыл бұрын
What a great video !! Thanks Kunal for being such a great teacher
@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!!
@aniketrai2767
@aniketrai2767 5 ай бұрын
Awesome Lecture on OOPs, sometimes you explain so much that a clear thing becomes more confusing again but still love it. You really made OOPs look and sound pretty Fun !!
@abhinavgupta1492
@abhinavgupta1492 2 жыл бұрын
Thanks for this playlist, helped me in revising and fill gaps in my basics. It helped a lot in learning.
@devangjoshi6718
@devangjoshi6718 2 жыл бұрын
Bro this is the best content one can get for OOPS in java, Kunal bro you are an amazing guy. Hats off to you.
@saurabsaseendran5209
@saurabsaseendran5209 2 жыл бұрын
I am gonna put comment in all those videos, which were really insightful for me. I have work experience of 1+ year in java, and I didnt know a single thing about static, singleton class. Thanks man. Its so sad that I have to wait for other videos. But until then I am going to watch all other remaining videos. Thanks buddy.
@surendrajat7290
@surendrajat7290 Жыл бұрын
man i can't explain how happy I am after watching your video. i will definitely going to see your all videos.
@vanshitabansal7646
@vanshitabansal7646 Жыл бұрын
You r the first person who cleared my doubt regarding static variable. Thanks!
@mohitrana9338
@mohitrana9338 Жыл бұрын
loved the idea of explaining static keyword. Great work!!
@tirakv
@tirakv Жыл бұрын
Let's go! Second video -> Checked!
@anurag-pathak10
@anurag-pathak10 2 жыл бұрын
Really awesome as usual singleton taught in a very simple way.
@tanujamaurya8875
@tanujamaurya8875 3 ай бұрын
We are glad to have teachers like Kunal sir!! Thank you so much kunal kushwaha!
@vedified-spiritual7034
@vedified-spiritual7034 2 жыл бұрын
Your way of explanation is truly awesome .Thanks a lot for this playlist.😇😇😇🙂
@nagame859
@nagame859 10 ай бұрын
Superb! Just explained complex things in a simple way with the best examples! Thanks!
@sanskar-khandelwal
@sanskar-khandelwal Жыл бұрын
I love how you explain things like that functions are humans and they talk to each other, It makes it very easy to understand
@jamespeterson7824
@jamespeterson7824 Жыл бұрын
Teaching OOP in so easy understandable manner...good work 👍
@bablugupta2119
@bablugupta2119 2 жыл бұрын
This video have cleared my so many doubts thanks Kunal!!!
@soul_s_music1515
@soul_s_music1515 Жыл бұрын
"And what else do human have " had me cracking 🤣🤣, your videos are so awesome, it almost feels like real class. Thank you for creating such amazing tutorials.
@feelthenatureandnatural2577
@feelthenatureandnatural2577 5 ай бұрын
I am blown away .Literally Blown away.
@rosariobeck6254
@rosariobeck6254 2 жыл бұрын
I would say kunal you are providing lot of values to people. Keep up the good 👍 work.
@BackEndGenius
@BackEndGenius Жыл бұрын
Totally loved it. Especially static & Singelton classes.
@jishankhan4055
@jishankhan4055 Жыл бұрын
The course which you have started are litererally helping Alot
@user-mu3oe9wn9k
@user-mu3oe9wn9k 4 ай бұрын
This is the best Java DSA course you can get . Kunal is the best teacher.
@giriprasaths1347
@giriprasaths1347 Ай бұрын
Can't find a better series for OOP than this. Thanks a lot Kunal
@vikrambadhan1278
@vikrambadhan1278 4 ай бұрын
Loving this course. Helping a lot in my masters level classes and interview prep.
@krishnanbhardwaj9562
@krishnanbhardwaj9562 2 жыл бұрын
Back to back video thanks kunal♥️♥️
@user-nw9ip1lo8b
@user-nw9ip1lo8b 4 ай бұрын
i have learned oops from other video but no one have covered the static and explained these concepts with these ease .❤❤
@vishalparashar4976
@vishalparashar4976 7 ай бұрын
i dont have words ! i am just surprised what a brilliant content you have just provided us thanks kunal thanks a lot
@hemanthkumar3743
@hemanthkumar3743 2 жыл бұрын
i haven't seen anything of this sort. this is arguably the best oop course .
@akshatparmar4182
@akshatparmar4182 Жыл бұрын
personally best oops lecture I have seen so far ....... one of the best teachers Kunal Kushwaha
@techic8944
@techic8944 2 ай бұрын
Kunal,there are no words to thank YOU!!!
@ashutoshsarode4191
@ashutoshsarode4191 Жыл бұрын
Awesome explanation bro. Thank you for clearing static confusion from now on. One of the best
@user-ug5yi6yv3k
@user-ug5yi6yv3k 4 ай бұрын
Your exceptional teaching in your videos is truly commendable, making complex concepts engaging and easily understandable. Thankyou so much kunal
@Iron_Man019
@Iron_Man019 10 ай бұрын
The better course of oops than this I have never seen ❤
@olatunbosundare6073
@olatunbosundare6073 Жыл бұрын
I have watched the first one, changed my perspective on Java and increased my knowledge. I watched this second one, and it sure looks like I am watching an interesting Binge-worthy series on Netflix. Guy is good, and all this publicly available, oh my... this is Gold.
@shubhamagarwal9902
@shubhamagarwal9902 Жыл бұрын
You make these tutorials really interesting, Tysm! :)
@ramcharan407
@ramcharan407 7 ай бұрын
These OOP videos have changed my perspective from cracking FAANG to admiring the beauty of programming and building stuff ❤❤❤
@432prameela3
@432prameela3 Жыл бұрын
This way of teaching make me easy for understanding oops concepts very well🔥
@bhaskarmanna8077
@bhaskarmanna8077 Жыл бұрын
Best lecture series on OOPS 👌👌
@codekicks2171
@codekicks2171 2 жыл бұрын
Thankyou for providing such a great content for free
@surajmaity6194
@surajmaity6194 2 жыл бұрын
I have learnt new things in this video. Yes, you are helping us to learn something new
@ultron1060
@ultron1060 11 ай бұрын
I Couldn't have found better lectures . thanks man
@shofiyabootwala2094
@shofiyabootwala2094 2 жыл бұрын
The way you teach will never make us forget these OOP concepts .Thank you.
@KunalKushwaha
@KunalKushwaha 2 жыл бұрын
Glad to hear that
@sivan2878
@sivan2878 Жыл бұрын
Awesome explanation bro, finally understood the real meaning of static.
@saifurrahman2503
@saifurrahman2503 3 ай бұрын
These lectures change my perception of OOP in Java.
@jayadubey_22
@jayadubey_22 2 жыл бұрын
Really you have a passion to teach such difficult concepts Respect🙌
@kritikarawat2180
@kritikarawat2180 5 ай бұрын
I always wanted to learn like this.Understand the fundamentals.I learnt MERN from many sources but still failed to understand the fundamental working.Really really appreciate.
@jaaycarrillo6947
@jaaycarrillo6947 Жыл бұрын
some of the best content I have seen on OOP in Java
@kushagrarajput6957
@kushagrarajput6957 2 жыл бұрын
Wooow, kunal is explaining concepts in so much detail.
@bilalgondal3090
@bilalgondal3090 10 күн бұрын
really really awesome video, the way you explained static concept, i dont think i would now forget it ever.
@user-ky5uf6dt4z
@user-ky5uf6dt4z 3 ай бұрын
I'm having difficulty expressing my gratitude adequately, but your content has made it much easier for me to understand. I am thoroughly satisfied with your stream. Thank you so much Kunal !
@justlikeyou8272
@justlikeyou8272 Жыл бұрын
coolest video ever for OOP's concept
OOP 3 | Principles - Inheritance, Polymorphism, Encapsulation, Abstraction
2:12:51
OOP 4 | Access Control, In-built Packages, Object Class
50:45
Kunal Kushwaha
Рет қаралды 146 М.
Каха с волосами
01:00
К-Media
Рет қаралды 6 МЛН
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 795 М.
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 25 МЛН
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 50 МЛН
OOP 1 | Introduction & Concepts - Classes, Objects, Constructors, Keywords
1:42:27
Recursion Subset, Subsequence, String Questions
1:23:56
Kunal Kushwaha
Рет қаралды 257 М.
Bubble Sort Algorithm - Theory + Code
46:37
Kunal Kushwaha
Рет қаралды 271 М.
Switch Statements + Nested Case in Java
26:11
Kunal Kushwaha
Рет қаралды 282 М.
Java Full Course [NEW]
3:35:11
Amigoscode
Рет қаралды 1,5 МЛН
Strings and StringBuilder in Java
1:27:29
Kunal Kushwaha
Рет қаралды 374 М.
Backtracking Introduction + Maze Problems - Theory + Code + Tips
1:28:10
Kunal Kushwaha
Рет қаралды 164 М.
Каха с волосами
01:00
К-Media
Рет қаралды 6 МЛН