I need help understanding the difference between overriding and polymorphism.

Posted on 2009-02-12
Last Modified: 2012-05-06
So I also need to circle polymorphism in this project
but I don't understand what it really is.  To me, it seems like its overriding something from a superclass.  Can anyone explain/show it any better?
Question by:Nickd916
    LVL 92

    Accepted Solution

    Have a look at the Entity class
    LVL 86

    Expert Comment

    There isn't a difference. Polymorphism involves overriding
    LVL 92

    Expert Comment

    Thje XyzEntity class extends it and override some of its methods, eg. move(), collideWith() to give specific behaviour for that type of Entity

    LVL 26

    Expert Comment


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    instanceof  operator in java 26 56
    Books that can get me started on JAVA 2 34
    countPairs challenge 7 39
    wordlen challenge 3 30
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now