#66 Need of Interface in Java

  Рет қаралды 163,846

Telusko

Telusko

Күн бұрын

Пікірлер: 74
@leonardorafaelli8026
@leonardorafaelli8026 8 ай бұрын
What an awesome tutorial! You showed the problem and then showed how to solve it, simple and direct. Perfect, thank you very much!
@SP-vq7tg
@SP-vq7tg 8 ай бұрын
Simply Woow!! Its crisp and clear.. I spent 17k on Java course and ended up confused. Wish i had found you before...
@SATHWIK05
@SATHWIK05 Жыл бұрын
Good explanation sir Understood everything....
@amanjain5045
@amanjain5045 6 ай бұрын
I really do not know how to thank you! The real life example you show, and the way you show it step by step. The reason I am now good at Programming is not because of my University, it is you!
@lunarstar7965
@lunarstar7965 Ай бұрын
What a great example to explain this concept!!
@rsz90182
@rsz90182 3 ай бұрын
Thank you, that was well done and quite simple to understand. Most teachers make this into rocket science and scared me away. I am finally beginning to understand it.
@andrewjenson_original
@andrewjenson_original 9 ай бұрын
Hi, I'm confused. It seemed like your video showed the value of an abstract class Computer. But, then, in the last 10 seconds of this video, you changed Computer from an abstract class to an Interface. But, I'm not sure what the value is for changing it to be an interface? It seems like the real value was gained by having Computer be an abstract class.
@srikardevarakonda2933
@srikardevarakonda2933 8 ай бұрын
Exactly.. same doubt.. this is a video on abstract class, not interface.
@insolus2307
@insolus2307 Ай бұрын
I am not sure but iirc the advantage here is that interface allows multiple inheritance, abstract class or classes in general do not allow that, so for example if we need not only Computer for dev to code on but also specific OS lets say for this example like Windows or macOS or Linux etc.. then we can create another interface and have that implemented as well by the classes, eg. class Desktop implements Computer, OperatingSystem{//code for both}
@rajeshbollam4920
@rajeshbollam4920 4 күн бұрын
Abstraction can be achieved by both abstract classes as well as interfaces. However, interfaces are usually preferred because multiple interfaces can be implemented in a single class. If abstract classes are used, then the main drawback is that abstract classes are extended, so if you extend your abstract class to implement abstract methods, then you will not be able to extend other classes, as only one class could be extended, thus limiting the scope of the class to perform many functions.
@ManojDoodee1171
@ManojDoodee1171 Ай бұрын
My concept of Inheritance cleared totally in this video. What a worthy video. Now inheritance ka
@shauryasinghrajput411
@shauryasinghrajput411 20 күн бұрын
Thank you sir, you explained it wonderfully
@revanthff7403
@revanthff7403 3 ай бұрын
The explanation was awesome every student can learn easy seeing this channel videos
@HabiburRahman-dm5yt
@HabiburRahman-dm5yt 8 ай бұрын
Your teaching is well. but here I have a question. You have showed loose coupling using inheritance, abstraction and interface. All are working well. But when can we choose the suitable one?
@shishirchitre1945
@shishirchitre1945 3 күн бұрын
Thanks a lot for this lecture!!! Cleared many concepts.
@harshitjain8820
@harshitjain8820 4 ай бұрын
Best explanation for this concept!!
@baili8654
@baili8654 4 ай бұрын
Very thank you, you made me very clear about this. God bless you!
@sarthakavaiya3360
@sarthakavaiya3360 4 ай бұрын
great way of explaining interface
@painisgain1003
@painisgain1003 5 ай бұрын
Thank you so much, I've been looking for a good explanation of interfaces :)
@sridharmurari3007
@sridharmurari3007 Жыл бұрын
One question when we need to go for Abstract vs Interface
@2192_RAHULPATIL
@2192_RAHULPATIL 7 ай бұрын
Whenever you want partial abstraction use abstract class and for full abstraction use interfaces
@Sanjay-xq5xr
@Sanjay-xq5xr 7 ай бұрын
Awesome explanation with example.
@HardikT-md1ls
@HardikT-md1ls Ай бұрын
Sir you are awesome. ❤
@rlifts
@rlifts 4 ай бұрын
Brilliant ! Subscribed.
@abhishekkale8750
@abhishekkale8750 10 ай бұрын
what a great explanation. thank you Naveen sir
@JavaMoth
@JavaMoth Жыл бұрын
Yep, it's clearer now
@sastisfya2721
@sastisfya2721 Жыл бұрын
Congratulations boys and girls for more than 60%completion !!!! Just a few more to goooo!! Les ghoooo💪
@TreatsNTravelsByJaaiPawar
@TreatsNTravelsByJaaiPawar Жыл бұрын
Hi 5 .. just completed this video!
@merrylia8316
@merrylia8316 Жыл бұрын
🤗
@pranalijadhav_2681
@pranalijadhav_2681 Ай бұрын
Thank u so much sir😊❤..
@amsha3083
@amsha3083 Жыл бұрын
Extremely Ambiguous
@ajayghode3602
@ajayghode3602 23 күн бұрын
Thank You
@somnangvirakvonprince
@somnangvirakvonprince Жыл бұрын
I tried this and it works fine but there is a flaw. if the variable type is Computer then I cannot use the property and method of the children class as the compiler at the moment we compile the code only know the members of the Computer class. But it works if we just want to reuse the code function with different implementations. Great video by the way sir
@DeepakSingh-n2g
@DeepakSingh-n2g Жыл бұрын
What you tried now (And what's in the video), is called "Upcasting". Maybe you can explore more about "Upcasting" and "Downcasting" in Java.
@i_dhiraj
@i_dhiraj 7 ай бұрын
u are awesome sir u teaching very fine respect !
@VinceRyanDizon-xl9sb
@VinceRyanDizon-xl9sb 2 ай бұрын
Wow, just wow
@ham3ltonion
@ham3ltonion 6 ай бұрын
Too good sir
@sciekoszczur
@sciekoszczur 2 ай бұрын
thank you bro
@AOCalive
@AOCalive 2 ай бұрын
Fucking genius way to talk about coding when relating it in such a way of our reality, ty!
@vipassassin404
@vipassassin404 10 ай бұрын
When I try to keep a method which is not a public in the class which implemented from an interface,why it is showing error...
@davidhusted817
@davidhusted817 10 ай бұрын
What about if we make a method code as abstract and use anonymous class , because the best practise to avoid instantiate classes further we need it because that make memory leak
@ManojMehra-b7i
@ManojMehra-b7i Жыл бұрын
great bro
@aszaw5342
@aszaw5342 Жыл бұрын
Great explanation!
@ALENBELJI
@ALENBELJI Жыл бұрын
When we create a reference to the parent and object of child we can only access the methods of the parent but how did you code was able to acccess the methods of the child
@SATHWIK05
@SATHWIK05 Жыл бұрын
Same doubt
@001vidhu
@001vidhu Жыл бұрын
Its the object of child class & its not upcasted. thats why .
@davidhusted817
@davidhusted817 10 ай бұрын
This is the downCasting
@thanveerpp1983
@thanveerpp1983 9 ай бұрын
@@davidhusted817how this is down casting This is upcasting ,because the object of child class has been assailed to parant class object variable
@sher.5027
@sher.5027 11 ай бұрын
Bhai, you are the best teacher who teaches with the best and simplest examples.
@kamakshijayaraman3747
@kamakshijayaraman3747 5 ай бұрын
you just showed what an interface can do with abstract class. what is the difference? why we need interface
@sahilthegeek
@sahilthegeek Жыл бұрын
amazing tutorial😀😀😀
@likithmc3435
@likithmc3435 10 ай бұрын
Desktop ❌ Dekstop ✅
@linquanma6145
@linquanma6145 Жыл бұрын
Very nice example
@aryaC099
@aryaC099 Жыл бұрын
0:40 I beg to differ, sir. Corporates prefer the term "slave" 😭
@MohdKhan02
@MohdKhan02 10 ай бұрын
whats the basic difference between using interfaces and implemenths rather using abstract class with our regular inheritance extends keyowrd? can anyone plz explain me?
@arsh3250
@arsh3250 6 ай бұрын
Well, the interface has a lot of specific features. Like here we are allowed to perform multiple inheritance i.e a class can implement more than one interfere, no the case when we are using abstract classes. Also, we need to keep in mind that abstract classes are not solely for designing, I mean we can have concrete methods in it as well right? But you know interfaces are purely for design purpose, the methods in it are by default abstract and public.
@YouTube.com33
@YouTube.com33 Жыл бұрын
I Can Understand Sir😍
@Munna-09-i7
@Munna-09-i7 2 ай бұрын
I think your mother tongue is Telugu 🌚
@yuv09
@yuv09 Жыл бұрын
Your provided source code is self explanatory.... Code + video = Java dead 💀
@shraddhapawar5674
@shraddhapawar5674 Жыл бұрын
Best teacher
@MajorGabTech
@MajorGabTech Жыл бұрын
What is the main difference between abstract and interaface? Besides the fact that interface is not a class, how to know when to use which ?
@madhusudhanreddychencharap4881
@madhusudhanreddychencharap4881 Жыл бұрын
In abstract class there is a chance to add concrete methods but on other hand interface is 100 % abstraction no concrete methods allowed
@karthikgururajan1131
@karthikgururajan1131 2 ай бұрын
navin sir flexing his macbook xD
@ROSHAN-HARI-BALAJE
@ROSHAN-HARI-BALAJE 7 ай бұрын
0:40 Humans? but... but we are aliens!!!!
@pst659
@pst659 8 ай бұрын
stil you didn't explain why we need interfaces. you only explain why we need abstract classes
@GOKULK-ll8ur
@GOKULK-ll8ur Жыл бұрын
i thought we were aliens
@ALIHAMZAAKRAM-oe2su
@ALIHAMZAAKRAM-oe2su Жыл бұрын
hy ,sir in the #65 video you should modify your example as the comapny can give a developer a laptop or desktop rather than a devolper need a laptop due the wrong example i have to see the videoo again to understand the concept
@danielderese3170
@danielderese3170 6 ай бұрын
TTTHHHHAAAAKKK YYYOOOUUU!
@sourabh515
@sourabh515 Жыл бұрын
very confusing for newbies
@vishwasrchonu7134
@vishwasrchonu7134 8 ай бұрын
Bro, you are pretty awesome, but by what logic are you saying desktops are always faster than laptops? 😂😂😂😂
@vishwasrchonu7134
@vishwasrchonu7134 8 ай бұрын
Of course, you're a human, but let's just say you're a developer 😂😂😂😂😂😂
@amroulouay6819
@amroulouay6819 Жыл бұрын
Dekstop😂 3:28
@bellsvlog2064
@bellsvlog2064 Жыл бұрын
just waw
@Decoding108
@Decoding108 Жыл бұрын
Why u make everything so hard to understand , don't use your 10 years of experience in explaining lit things
#67 More on Interfaces in Java
3:22
Telusko
Рет қаралды 103 М.
#65 What is Interface in Java
8:03
Telusko
Рет қаралды 262 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Java's Creators Rejected Multiple Inheritance - Here's Why
13:14
Coding with John
Рет қаралды 71 М.
#61 Abstract Keyword in Java
12:09
Telusko
Рет қаралды 192 М.
Zig For the Uninitiated: Zig Interfaces
11:56
Tyler Calder
Рет қаралды 3,7 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 996 М.
Stream API in Java
26:04
Telusko
Рет қаралды 378 М.
#95 Comparator vs Comparable in Java
15:43
Telusko
Рет қаралды 224 М.
Abstract Classes and Methods in Java Explained in 7 Minutes
7:00
Coding with John
Рет қаралды 572 М.
#40 Encapsulation in Java
11:42
Telusko
Рет қаралды 222 М.
Functional Interface | Lambda Expression in Java
13:56
Telusko
Рет қаралды 165 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН