Questions tagged [polymorphism]

For questions related to dynamic polymorphism as exhibited in object-oriented programming languages.

Filter by
Sorted by
Tagged with
5 votes
6 answers

Concrete example for polymorphism use?

I am preparing a lesson about polymorphism in C++ and I would like to give an original example other than animals and shapes and I am really struggling with it because I realize polymorphism is not ...
nowox's user avatar
  • 407
4 votes
7 answers

Mental Model of Type Conformance/Subtype Polymorphism

I'm finding that my CS2 students really struggle with the notions of type conformance and subtype polymorphism in Java. Say we have the following: ...
cryptic_star's user avatar