Interface Inheritance (implements) | Java | Tutorial 35

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

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

  • @GokCe11111
    @GokCe11111 4 ปีที่แล้ว +27

    I love how you are my secret weapon for certain courses but at the same time I want you to get the appreciation you deserve so I recommend your channel to all my engineering student friends. You are a great teacher

  • @ranjanadissanayaka5390
    @ranjanadissanayaka5390 6 หลายเดือนก่อน +1

    You are so valuable for Computing students world wide. Thanks Mike.

  • @SSJDuBois
    @SSJDuBois 5 ปีที่แล้ว +34

    i really love these videos, ive watched them through like 4 times now to keep myself fresh but i wish after the simple example you would do a real world example. like, how we would implement this on a job or a project

  • @mflr121
    @mflr121 3 ปีที่แล้ว +5

    Your videos are so much easier to follow than my lectures. I love how you go through processes, only to show that there are better ways to do them; you give clear reasoning as to why we should code a certain way. Thank you!

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

    man I'm just speechless, you're literally the best. Sending love from South Africa.

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

    I have been researching interfaces for a long time and could not grasp it. I viewed dozens and dozens of videos and all they explain is how to create the interface and create the object using the interface name. None of them ever explained the reason for doing it. I became a master at creating interfaces and the objects that use them but still did not know the reason for doing so instead of just using the class name and calling the method directly. It became very frustrating. This is the first video that explained it to me using the array of different classes and calling the correct method for each class. I thank you for explaining this and will look for your future videos

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

    Interface~essentially just define a template for a category of classes called an interface and then we can implementation that interface in spesific instances
    Like you say:hai animal have this,hai animal have that
    Mereka harus punya atribut ini
    New interface
    Class:we can model real word entity

  • @Nosferatu311
    @Nosferatu311 5 ปีที่แล้ว +11

    You are an awesome teacher my friend.

  • @harryli7557
    @harryli7557 2 ปีที่แล้ว

    So much clearer than how my prof taught it. Saved the day man!

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

    Thank you Mike, it's not interfaces that are awesome, you are!

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

    you are such a amazing to explan. very clear explanation. Thanks very much and god bless you. There are a lot people knew a lot about Java , but only few are teachers in the world and you are one of them

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

    thanks dude, super easy to follow for a German, nice and clear voice

  • @Captainfeso
    @Captainfeso 4 ปีที่แล้ว +4

    Hey man! You're such a great teacher! Thanks for the video!

  • @Grace-oh3rg
    @Grace-oh3rg 3 ปีที่แล้ว +1

    Love your videos learned a lot from your channel in java I understand what I am doing when I code makes more sense

  • @pradeepkumarsingh6964
    @pradeepkumarsingh6964 4 ปีที่แล้ว +3

    Awesome explaining of code

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

    Your teaching is great. Thanks a lot

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

    You’re the man !!!
    Great explanation thanks a lot man, I really understand now

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

    You are doing a great job with these videos man!!

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

    excellent explanation

  • @tx5648
    @tx5648 2 ปีที่แล้ว

    Incredible explanations

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

    you are too good you have saved me

  • @enlightened7354
    @enlightened7354 2 ปีที่แล้ว

    The man. God bless you bro

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

    Awesome explanation man

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

    8:54 HOOOLYYYY I finally get it

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

    Excellent

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

    u make it too easy bro

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

    you are a life saver

  • @rezashariat3464
    @rezashariat3464 2 ปีที่แล้ว

    good job

  • @nieveslokaritope7052
    @nieveslokaritope7052 2 ปีที่แล้ว

    Wow wow you’re amazing 🤩 thank you so much 💪🏾

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

    Brother thank you

  • @joggingpants2546
    @joggingpants2546 3 ปีที่แล้ว

    Damn that was so easily understood

  • @கீர்த்திக்வாசன்-ர1ஞ

    awesome broo....

  • @ralphlouis2705
    @ralphlouis2705 2 ปีที่แล้ว

    u really helped me

  • @ihssancanmturk3842
    @ihssancanmturk3842 4 ปีที่แล้ว

    Nice feature in Java, but what is the exact difference between an interface and a main class though? They look exactly the same me think !

  • @njantora2568
    @njantora2568 4 ปีที่แล้ว

    just love this.....................

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

    Thanks

  • @ChathuniPerera-f9o
    @ChathuniPerera-f9o 11 หลายเดือนก่อน

    you are the best! love ya✌

  • @yeab_sera1532
    @yeab_sera1532 3 ปีที่แล้ว

    Thank you!

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

    Nice

  • @habtamusium8646
    @habtamusium8646 2 ปีที่แล้ว

    thanks !

  • @srikanthreddy6991
    @srikanthreddy6991 5 ปีที่แล้ว

    Can you please make videos on Hibernate and spring

  • @Itech6969
    @Itech6969 3 ปีที่แล้ว

    I get this but I dont get why you did not do tha same thing with the chefs (tutorial 34) or vice versa, how can I know when to use implements or extends like you previously video?

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

    we can do the same thing on inheritance, right? but what's the difference?

    • @jiayi1129
      @jiayi1129 4 ปีที่แล้ว +4

      Hi I had the same query and googled the answer. Some key differences are that
      1) A class can implement multiple interfaces, but a class can extend 1 other class only.
      2) A class can be "instantiated" i.e. we can create instances and objects from classes, however we cannot instantiate interfaces.
      for more in depth info you can check this quora link out: www.quora.com/What-is-the-difference-between-interface-and-class-in-Java
      Hope this helped!

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

    What da dog doing

  • @Alex-ve4hn
    @Alex-ve4hn 2 ปีที่แล้ว

    'hey welcome to chillis'

  • @trigus00
    @trigus00 2 ปีที่แล้ว

    What would you do if you have getters and setters ?

    • @srschool4298
      @srschool4298 2 ปีที่แล้ว

      JUST SOMETIMES APPLY YOUR OWN BRAIN ALSO

  • @imamiali7099
    @imamiali7099 3 ปีที่แล้ว

    Can cat class have another methods like scratch or poop ??

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

    Noice

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

    Programming what the dog doin'

  • @arnabmajumder3160
    @arnabmajumder3160 4 ปีที่แล้ว

    u r AWSM,SO GD
    But CAT dsnt eat GRASS..

    • @lioii
      @lioii 3 ปีที่แล้ว

      Mine does and plenty of cats do to. Eating grass aids their digestion...

    • @srschool4298
      @srschool4298 2 ปีที่แล้ว

      so who's saying it does

  • @chidionoh
    @chidionoh 2 ปีที่แล้ว

    what da dog doin?

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

    While using the animal example helps explain how this works, I dont yet see what sort of project this might be useful for. Good video otherwise.

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

      You use public interface for classes to make your character walk and register the tiles they walked on, packetlisteners(executed the packets), writing the display text, color, and font for a player's achievement quest, events like holiday events, minigame events, combat method to check if it can perform the next upcoming attack, interring a syntax when players type a number/letter on a boxed interface on their screen, and updatingsequences, etc.
      That's all server sided when creating an RPG game, at least on my part. There's more for other kinds of games and some that I don't use for my RPG for now.
      The client side for me are; you can use it to create a pop up notification and getting the x,y,z coordinates of the pixelation for particle effects on a player's weaponary/armour. So like flames flowing down like a river on the bottom tips of a character's cape/bag/backpack, etc.

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

      Also, if you're wondering why I'm even watching these videos, I just speed the video up to x2 and skim to some parts so I can refresh my memories every month or so. Some things I can forget or wonder what it does, so I watch videos like these to remember and go "OH yea..!!"

    • @bubblegumprincess7660
      @bubblegumprincess7660 6 ปีที่แล้ว

      @@javajuice1333 Did you learn all that knowledge from here?

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

    bro you look like a cartoon, wassup