Java Programming Tutorial – 61 – Simple Polymorphic Program

///Java Programming Tutorial – 61 – Simple Polymorphic Program

Java Programming Tutorial – 61 – Simple Polymorphic Program

FavoriteLoadingAdd to favorites

Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –

source

Java468x60
By |2020-08-24T09:02:42+00:00August 24th, 2020|Java Video Tutorials|40 Comments

40 Comments

  1. Idlan Rafiqi August 24, 2020 at 9:02 am - Reply

    I LOVE THIS TUTORIAL.

  2. Epoch August 24, 2020 at 9:02 am - Reply

    𝘴𝘸𝘪𝘯𝘦 𝘧𝘭𝘶???

  3. Alina Kay August 24, 2020 at 9:02 am - Reply

    That cough.. swine flu…. in 2020 as soon as I heard it i already thought Rona D: LOLOL

  4. Pranav Rao August 24, 2020 at 9:02 am - Reply

    You could make the noise method in Animal class an abstract method.

  5. Andre The ruler August 24, 2020 at 9:02 am - Reply

    cough ugh…corona virus.Hahahaha.

  6. Sonthaya Deelua August 24, 2020 at 9:02 am - Reply

    OMG!!!! As a Java beginner. This is the first time I understand Polymorephism clearly. I really love your voice and the way you teach. You are amazing teacher Bro!!

  7. Nabeegh August 24, 2020 at 9:02 am - Reply

    why did he stop making videos?

  8. Peyton Butler August 24, 2020 at 9:02 am - Reply

    swine flu lmao so 2009

  9. H. Rehaief August 24, 2020 at 9:02 am - Reply

    Gear work!

  10. Tobi Mann August 24, 2020 at 9:02 am - Reply

    @thenewboston what if im trying to integrate this new cool stuff into my general animallist class, how I do it without any errors? XD as a matter of fact I was coding it, but received a nullpointer Exception. My Program added the dog and it was also barking, but the fish wasn't added…

  11. 124 612 August 24, 2020 at 9:02 am - Reply

    感谢 + Thank u

  12. Japhet Anciado August 24, 2020 at 9:02 am - Reply

    dog cannot be converted to ANimal/.

  13. naya account August 24, 2020 at 9:02 am - Reply

    hi there ranky akab..incase u r reading this 😀

  14. Lenovo Genovia August 24, 2020 at 9:02 am - Reply

    I'm a bit confused of where to put the square brackets [] when you create an array. In tutorial 55, Bucky placed the square brackets like this: food bucky[] = new food[2]. He placed it at the array name for the left side of the equal sign, and placed the other square brackets beside the class name. But int this video, and in the previous one as well, he placed both square brackets with the class name: Animal[] thelist = new Animal[2].

  15. Mat Chow August 24, 2020 at 9:02 am - Reply

    Glurp Slurp.

  16. Rohit Kapoor August 24, 2020 at 9:02 am - Reply

    How do i assign the value of 100 objects to array indexes in an efficient way then??

  17. A_Moist_Man August 24, 2020 at 9:02 am - Reply

    My dog go, "Russ russ"

  18. Han Yolo August 24, 2020 at 9:02 am - Reply

    So when you create the Animal array with Animal[] thelist= new Animal[2], I understand the thelist=new Animal[2] part, what does the Animal[] actually do or what would you call it. I've seen people create a array class of a different class and was curious was that does. For example, Dog[] thelist=new Animal[2] or Fish thelist=new Animal[2]. And also, would Animal[] thelist=new Fish[2] be possible or would it throw a error? I assume it would because Animal is the parent class?

  19. Michael Mejia August 24, 2020 at 9:02 am - Reply

    I learned more about programming from watching your old 8-minute videos than all of my hour-long college classes combined. Unbelievable. :/

  20. neocyndaquil August 24, 2020 at 9:02 am - Reply

    OMG, that was so clear!!! I think I finally understand polymorphism now -.-

  21. Stephen Elliott August 24, 2020 at 9:02 am - Reply

    I'm pretty sure my lecturer just writes down what you say in these videos and repeats it as a script in lecture..

  22. Aman Jain August 24, 2020 at 9:02 am - Reply

    you kept the promise buck. you made me pro in polymorphism! buck's the man!

  23. Aman Jain August 24, 2020 at 9:02 am - Reply

    ohug. swine flu😂

  24. SHUBHAM KUMAR SINGH August 24, 2020 at 9:02 am - Reply

    Why this program shows me an error when I don't put noise() in Animal class?
    Technically I'm calling noise() of Dog and Fish class not of Animal class….

  25. Mark August 24, 2020 at 9:02 am - Reply

    if anyone has a problem with getting it to work, I had to make my methods all static otherwise it threw an error

  26. Amit Walia August 24, 2020 at 9:02 am - Reply

    Java should add these tutorials in their product. Who agrees with me?

  27. a kane August 24, 2020 at 9:02 am - Reply

    "Glurp Slurp" –  That's what she said.

  28. Wrecked Life August 24, 2020 at 9:02 am - Reply

    say glurp slurp one more time.

  29. Anurag August 24, 2020 at 9:02 am - Reply

    We did same thing in polymorphic array?

  30. Utkarsh Jain August 24, 2020 at 9:02 am - Reply

    an easier way…

    Animal theList[] = new Animal[2];
    theList[0] = new Dog();
    theList[1] = new Fish();

  31. milerules August 24, 2020 at 9:02 am - Reply

    6:12

    "and then shhfshfseusfksd"

  32. zeshan ali August 24, 2020 at 9:02 am - Reply

    lecture on interface????

  33. Roody Tooty August 24, 2020 at 9:02 am - Reply

    And now for your "Buckies greatest hits!"

    1:58 if I where a fish, ide say glurp slurp

  34. Kamal Jain August 24, 2020 at 9:02 am - Reply

    Currently the views on this video are 187,187

  35. Robert Reimann August 24, 2020 at 9:02 am - Reply

    Any1 please write me the same thing with normal for loop. Cause I can't understand a shit and the strange for loop doesn't work for me. Something with 1.5 source lvl. Please 😀

  36. JuiceWater August 24, 2020 at 9:02 am - Reply

    It's kind of sad to see these videos lose views overtime. This video has over 20,000 views less than the array holding one. Almost 20,000 people gave up (Excluding ones that may just need a refresher on or learn a specific concept, or the ones who have not yet continued but plan to).

  37. David Armendáriz August 24, 2020 at 9:02 am - Reply

    So, what's the difference between this program and the one made in tutorial 55?

  38. Mahgoub Abbas August 24, 2020 at 9:02 am - Reply

    i made the array thelist[1] with 1 as an index i wanted to use thelist[0] for fish class and thelist[1] for the dog class but an error pops up when i run the program can anyone explain?

  39. Devin M August 24, 2020 at 9:02 am - Reply

    Just gonna share this in case anyone needs to know:

    if you want to set an object to a string or int or whatever, the method in the object has to return that sort of data type.
    so if you want to use "ruff" from Dog in the animals class, u must return the string ruff in the noise method in Dog, and then set it to a string variable in the main class, and finally use that recall variable u just made in the main class in the object for Animal. I just spent 2 hours figuring this out cause im stupid and dont want anyone else to suffer the same fate

  40. Daniel K August 24, 2020 at 9:02 am - Reply

    A tip for anyone interested. You can fill the array an easier way.

    theList[0] = new Dog();
    theList[1] = new Fish();

    I think it's easier doing this than writing more code out. Any thoughts?

Leave A Comment

*