Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: antiRepublicrat
Seriously, you showed a complete lack of understanding of the concept of inheritance.

You are a funny person. At no time was I debating inheritance or even discussing it. The comments I made in regards to your attempt at an OO example were it does not work in the real world. Your example was nonsense. OO abstraction does not convey into the real-world. There is no such thing as a vehicle class in the real-world. OO is a conceptual abstraction.

899 posted on 03/16/2005 3:55:32 PM PST by Last Visible Dog
[ Post Reply | Private Reply | To 895 | View Replies ]


To: Last Visible Dog
At no time was I debating inheritance or even discussing it.

If you don't think you were, then you know even less.

OO abstraction does not convey into the real-world. There is no such thing as a vehicle class in the real-world. OO is a conceptual abstraction.

There sure is if I'm modelling the real-world using OO. When I call up a Person object in my application, it definitely equals one real person in our organization.

It's funny you mention abstraction, since in my example it would be best to use an abstract class to represent the concept Vehicle, as I'd never never want to instantiate a Vehicle directly, but through derived classes such as Taxi, Dumptruck, etc., or by make, or whatever the application required.

907 posted on 03/16/2005 6:57:42 PM PST by antiRepublicrat
[ Post Reply | Private Reply | To 899 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson