Mail Archives: djgpp/1997/09/01/23:05:10
Paul Derbyshire wrote:
>
> Temujin (temujin AT sentex DOT net) writes:
> ...why do OOP profs always use a class vehicle, why
> not class fruit or class human or something?
IMO, the worst OOP example is, "A Circle is a Kind of ellipse." The
problem is that many of the people who crunch code also know several
formal mathematical definitions of "Circle" and "Ellipse." Inevitably,
some poor soul reads the comp.lang.c++ FAQ, which spends six pages
discussing "Circle and Ellipse", and opens yet another thread mincing
the distinctions between computer functions and formal mathematics.
(Yes, I made that mistake in my first post to C.L.C++.)
BTW--does "class fruit" inherit from "class food" or from "class
human"? What about "class clown?"
--
Charles Krug, Jr.
- Raw text -