View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide
Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007

Discussion 4

Solution to Question# 3 under "Definitions" on Midterm #1 Review for Spring 2004

3. What is Polymorphism?

Ans: Polymorphism is the ability for a programming language to process objects differently depending on their data type or class.

Sometimes functions can be overloaded through polymorphism (use the same name, but actually use different functions) the compiler or interpreter know which one to call based on the number or data types of the arguments.

With respect to squeak, polymorphism allows for the same message to perform different operations on the same data

Link to this Page