Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

I need help understanding the difference between overriding and polymorphism.

So I also need to circle polymorphism in this project
 http://www.cokeandcode.com/info/tut2d.html
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?
0
Nickd916
Asked:
Nickd916
  • 2
1 Solution
 
objectsCommented:
Have a look at the Entity class
0
 
CEHJCommented:
There isn't a difference. Polymorphism involves overriding

http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming
0
 
objectsCommented:
Thje XyzEntity class extends it and override some of its methods, eg. move(), collideWith() to give specific behaviour for that type of Entity

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now