Java Video Tutorial 14

Java Video Tutorial 14

FavoriteLoadingAdd to favorites

Code From Video:

Java468x60

Best Java Book :

In this Java video tutorial I cover Polymorphism, Inheritance, Protected, Final, Instanceof and a bunch more.

source

By |2019-04-15T17:34:57+00:00April 15th, 2019|Java Video Tutorials|23 Comments

23 Comments

  1. RampageGamer April 15, 2019 at 5:34 pm - Reply

    So what is the advantage of using

    Animals tabby = new Cats("Tabby", "Salmon", "Ball");

    over

    Cats tabby = new Cats("Tabby", "Salmon", "Ball"); ?

  2. Nipple Cripple 17 April 15, 2019 at 5:34 pm - Reply

    3:29 "and its gonna be called KHA"

  3. Aaron Roche April 15, 2019 at 5:34 pm - Reply

    would a getter method be necessary for favToy since it is a public variable

  4. SNKRhead Games April 15, 2019 at 5:34 pm - Reply

    I have a question about constructors. Let’s say you have a super class that has a constructor that takes in a name and the you have a sub class that does not have a constructor at all. Will it by default use the constructor of the super class and you would be able to make an object of the subclass that takes in the name as parameters when you creat that object?

  5. Xian Chen April 15, 2019 at 5:34 pm - Reply

    But what happens if you put an Animal into the method acceptAnimal(Animal randomAnimal) and then you cast a Cat to the Animal? What toy could it return?

  6. mferreira1231 April 15, 2019 at 5:34 pm - Reply

    Amazing

  7. Yogesh Waichal April 15, 2019 at 5:34 pm - Reply

    u are the best sir!

  8. Kurd Gamers April 15, 2019 at 5:34 pm - Reply

    The Best Explanation of Protected, Final and Polymorphism I have EVER seen <3

  9. Ayman Butmah April 15, 2019 at 5:34 pm - Reply

    Oh my god, Such a great teacher.. THANK you so much man.Great explanation<3

  10. Trevor Puckett April 15, 2019 at 5:34 pm - Reply

    you are hilarious!!😂🤘

  11. Jessy Nemati April 15, 2019 at 5:34 pm - Reply

    so what is polymorphism?

  12. Admin Alhabib April 15, 2019 at 5:34 pm - Reply

    StringBuilder Thanks = new StringBuilder ("Thank you");

  13. Wesmoto April 15, 2019 at 5:34 pm - Reply

    what is randanimal an object of? i only see generic animal and the cat object

  14. Stacy L April 15, 2019 at 5:34 pm - Reply

    Hi Derek. Thank you so much for this simple explanation of polymorphism! I loved the video and got much from it! It helped me understand the topic better than anything else, you obviously have a great talent 🙂 Keep it up!

  15. Johnson Hao April 15, 2019 at 5:34 pm - Reply

    This video is great, very clear and intuitive, if you could give more example for different situation and that will be perfect 🙂

  16. Óûth Mânē April 15, 2019 at 5:34 pm - Reply

    What a legend , thank you so much sir ! btw , can you please recommend a website or a serie of exercises of this type of concepts ? I only find exercises like "palindrome strings" "sum of factorial …" . Thanks !

  17. border April 15, 2019 at 5:35 pm - Reply

    Sir, may ı have a question,what should ı use "Cats morris =new Cats" or "Animals tabby= new Cats" in a real life project ?
    how to choice it?

  18. Filipe Rodrigues April 15, 2019 at 5:35 pm - Reply

    Anybody know why in a toString override in Cats we can write return this.favorite_toy and then use it on Animals some_cat = new Cats(); and no errors occur? We don't even need to cast this some_cat into a Cats object, the toString takes care of it. Strange :O

  19. Think Vegan April 15, 2019 at 5:35 pm - Reply

    how about you not using that changeName() function in Animal constructor and simply write this.name = name; just like favFood!! any taker!!!

  20. Bruno Ribeiro April 15, 2019 at 5:35 pm - Reply

    is this.favToy equivalent to create methods set() and get() to favToy?

  21. mattyice 1221 April 15, 2019 at 5:35 pm - Reply

    What is the purpose of creating the empty constructors for cats and animals?

  22. oCeAn MaN April 15, 2019 at 5:35 pm - Reply

    12:40 does this work only because of the tempCat?

  23. Biswarup Bhattacharyya April 15, 2019 at 5:35 pm - Reply

    Okay I watched till 14 understood some didnt apply now have to rewind again and watch and unsterstand great explanation though…..Its just that with so much code up and down left and right I lose my way I know I can download the code and watch it with your vids but on the go its difficult still you did a great job thankyou for this big tutorial trying to learn as much as I can Hope I get better.

Leave A Comment

*