Talk:Polymorphism: Difference between revisions

m
Add 1st section header.
(→‎Fortran: Comment to OOP example)
m (Add 1st section header.)
Line 1:
==Circle is a Point?==
Hi, I think there's a big conceptual error in the code examples: Almost all of them derive a Circle class from a Point class. This is IMHO conceptually wrong; derivation would mean that a circle ''is-a'' point, which is clearly not the case. You wouldn't normally pass circles to functions expecting points (say, a function returning the straight line through two points).
 
Anonymous user