• Question: What is polymorphism?

    Asked by npatricks16 to Yee Whye, Valerie, Nick, Mackenzie, Lin, Jun, Jacob, Brian, Anna on 14 Nov 2019.
    • Photo: Brian Zhang

      Brian Zhang answered on 14 Nov 2019:

      In genetics, polymorphism means a place in your genome (DNA) where two people can have a different letter, like A for me and C for you.

      In computer science, polymorphism means when two subclasses (Rectangle and Circle) of a superclass (Shape) both are able to access the method of the superclass (draw()). This shows up in object-oriented programming languages, like Java or C++.