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.
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.