Re: Object Class and Data Type

From: D Guntermann <guntermann_at_hotmail.com>
Date: Tue, 30 Mar 2004 23:29:09 GMT
Message-ID: <HvEx8L.9tC_at_news.boeing.com>


"Tom Hester" <$$tom_at_metadata.com> wrote in message news:d2b19$406990ec$45033832$24651_at_msgid.meganewsservers.com...
> Of course you are right. The purpose of class and type are entirely
> different. A class hierarchy is intended to relate entities based on
common
> behavior; however, a set of data types is intended to elaborate the
> differences between sets of values.

So I guess real numbers, rational numbers, and integers are not part of the same class hierarchy since they are data *types* versus your precious classes. What kind of reasoning is this? There are still basic properties of numbers shared, whether its called class or type.

Isn't the set of engineer objects in some context a subset of person objects? The set of values are different based on semantics and rules, but they are drawn from the same generalized set - the same as numbers.

So, for example, it is common for a
> class hierarchy to have a single root; often called object or entity. But
> data types rarely if ever inherit from a single basic data type.
> Furthermore, class itself is typically defined as an object with certain
> behaviors. On the other hand, one never sees data type, a base type,
> defined as a data type!

You are getting data type and built-in data type confused. You are also confusing low-level constructs with higher levels of abstraction.

  • Dan
    >
    > "Laconic2" <laconic2_at_comcast.net> wrote in message
    > news:0fudnaF9l9x-kvXdRVn-uQ_at_comcast.com...
    > > Over in the OTLT thread, I saw where someone used the name "CLASS" to
    > > describe the code_type. It seems to me that many people use "class" and
    > > "type" as though they were synonyms. It seems to me that they are not.
    > >
    > > Any thoughts?
    > >
    > >
    > >
    > >
    >
    >
Received on Wed Mar 31 2004 - 01:29:09 CEST

Original text of this message