#66 Need of Interface in Java

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 61

  • @leonardorafaelli8026
    @leonardorafaelli8026 6 หลายเดือนก่อน +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 5 หลายเดือนก่อน +3

    Simply Woow!! Its crisp and clear.. I spent 17k on Java course and ended up confused. Wish i had found you before...

  • @SATHWIK05
    @SATHWIK05 ปีที่แล้ว +14

    Good explanation sir
    Understood everything....

  • @rsz90182
    @rsz90182 หลายเดือนก่อน

    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.

  • @amanjain5045
    @amanjain5045 3 หลายเดือนก่อน

    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!

  • @revanthff7403
    @revanthff7403 24 วันที่ผ่านมา

    The explanation was awesome every student can learn easy seeing this channel videos

  • @sher.5027
    @sher.5027 8 หลายเดือนก่อน +3

    Bhai, you are the best teacher who teaches with the best and simplest examples.

  • @baili8654
    @baili8654 หลายเดือนก่อน

    Very thank you, you made me very clear about this. God bless you!

  • @painisgain1003
    @painisgain1003 2 หลายเดือนก่อน

    Thank you so much, I've been looking for a good explanation of interfaces :)

  • @harshitjain8820
    @harshitjain8820 หลายเดือนก่อน

    Best explanation for this concept!!

  • @sarthakavaiya3360
    @sarthakavaiya3360 หลายเดือนก่อน

    great way of explaining interface

  • @andrewjenson_original
    @andrewjenson_original 7 หลายเดือนก่อน +4

    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 5 หลายเดือนก่อน +2

      Exactly.. same doubt.. this is a video on abstract class, not interface.

  • @Sanjay-xq5xr
    @Sanjay-xq5xr 4 หลายเดือนก่อน

    Awesome explanation with example.

  • @abhishekkale8750
    @abhishekkale8750 7 หลายเดือนก่อน

    what a great explanation. thank you Naveen sir

  • @rlifts
    @rlifts หลายเดือนก่อน

    Brilliant ! Subscribed.

  • @i_dhiraj
    @i_dhiraj 4 หลายเดือนก่อน

    u are awesome sir u teaching very fine
    respect !

  • @sastisfya2721
    @sastisfya2721 ปีที่แล้ว +13

    Congratulations boys and girls for more than 60%completion !!!! Just a few more to goooo!! Les ghoooo💪

  • @amsha3083
    @amsha3083 ปีที่แล้ว +25

    Extremely Ambiguous

  • @JavaMoth
    @JavaMoth ปีที่แล้ว +1

    Yep, it's clearer now

  • @HabiburRahman-dm5yt
    @HabiburRahman-dm5yt 5 หลายเดือนก่อน

    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?

  • @somnangvirakvonprince
    @somnangvirakvonprince ปีที่แล้ว +1

    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 11 หลายเดือนก่อน +1

      What you tried now (And what's in the video), is called "Upcasting". Maybe you can explore more about "Upcasting" and "Downcasting" in Java.

  • @sridharmurari3007
    @sridharmurari3007 ปีที่แล้ว +6

    One question when we need to go for Abstract vs Interface

    • @2192_RAHULPATIL
      @2192_RAHULPATIL 4 หลายเดือนก่อน

      Whenever you want partial abstraction use abstract class and for full abstraction use interfaces

  • @MohdKhan02
    @MohdKhan02 7 หลายเดือนก่อน +2

    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 3 หลายเดือนก่อน

      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.

  • @aszaw5342
    @aszaw5342 ปีที่แล้ว +2

    Great explanation!

  • @AOCalive
    @AOCalive 2 วันที่ผ่านมา

    Fucking genius way to talk about coding when relating it in such a way of our reality, ty!

  • @davidhusted817
    @davidhusted817 8 หลายเดือนก่อน

    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

  • @linquanma6145
    @linquanma6145 ปีที่แล้ว +1

    Very nice example

  • @ham3ltonion
    @ham3ltonion 4 หลายเดือนก่อน

    Too good sir

  • @kamakshijayaraman3747
    @kamakshijayaraman3747 3 หลายเดือนก่อน

    you just showed what an interface can do with abstract class. what is the difference? why we need interface

  • @sahilthegeek
    @sahilthegeek ปีที่แล้ว +1

    amazing tutorial😀😀😀

  • @ALIHAMZAAKRAM-oe2su
    @ALIHAMZAAKRAM-oe2su ปีที่แล้ว +1

    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

  • @majorgabREAL
    @majorgabREAL ปีที่แล้ว

    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 ปีที่แล้ว +3

      In abstract class there is a chance to add concrete methods but on other hand interface is 100 % abstraction no concrete methods allowed

  • @vipassassin404
    @vipassassin404 7 หลายเดือนก่อน

    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...

  • @YouTube.com33
    @YouTube.com33 ปีที่แล้ว +1

    I Can Understand Sir😍

  • @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 9 หลายเดือนก่อน

      Its the object of child class & its not upcasted. thats why .

    • @davidhusted817
      @davidhusted817 8 หลายเดือนก่อน

      This is the downCasting

    • @thanveerpp1983
      @thanveerpp1983 6 หลายเดือนก่อน

      @@davidhusted817how this is down casting
      This is upcasting ,because the object of child class has been assailed to parant class object variable

  • @ManojMehra-b7i
    @ManojMehra-b7i ปีที่แล้ว

    great bro

  • @aryadeep099
    @aryadeep099 9 หลายเดือนก่อน

    0:40 I beg to differ, sir. Corporates prefer the term "slave" 😭

  • @shraddhapawar5674
    @shraddhapawar5674 ปีที่แล้ว +1

    Best teacher

  • @likithmc3435
    @likithmc3435 7 หลายเดือนก่อน +1

    Desktop ❌ Dekstop ✅

  • @yuv09
    @yuv09 ปีที่แล้ว +2

    Your provided source code is self explanatory....
    Code + video = Java dead 💀

  • @pst659
    @pst659 5 หลายเดือนก่อน

    stil you didn't explain why we need interfaces. you only explain why we need abstract classes

  • @sourabh515
    @sourabh515 ปีที่แล้ว +6

    very confusing for newbies

  • @ROSHAN-HARI-BALAJE
    @ROSHAN-HARI-BALAJE 4 หลายเดือนก่อน

    0:40 Humans? but... but we are aliens!!!!

  • @vishwasrchonu7134
    @vishwasrchonu7134 5 หลายเดือนก่อน

    Bro, you are pretty awesome, but by what logic are you saying desktops are always faster than laptops? 😂😂😂😂

  • @GOKULK-ll8ur
    @GOKULK-ll8ur ปีที่แล้ว +2

    i thought we were aliens

  • @danielderese3170
    @danielderese3170 3 หลายเดือนก่อน

    TTTHHHHAAAAKKK YYYOOOUUU!

  • @amroulouay6819
    @amroulouay6819 ปีที่แล้ว +1

    Dekstop😂 3:28

  • @vishwasrchonu7134
    @vishwasrchonu7134 5 หลายเดือนก่อน

    Of course, you're a human, but let's just say you're a developer 😂😂😂😂😂😂

  • @bellsvlog2064
    @bellsvlog2064 ปีที่แล้ว

    just waw

  • @Decoding108
    @Decoding108 ปีที่แล้ว +2

    Why u make everything so hard to understand , don't use your 10 years of experience in explaining lit things