defining a new data type [message #1384732] |
Fri, 30 May 2014 17:11  |
Eclipse User |
|
|
|
Hi,
My question is that how Boolean as data type is defined so that it has the operation of equality? Does it have any attributes? How the operands are shown?
I want to use a similar concept for defining a new datatype that its operation is to sum the value of attributes for two instances of a class.
So I have a class which the type of one of its attributes is a data type that I have defined.
This data type has the operation of addition. But I don't know how this operation can be defined while this data type does not have any specific attributes.
Thank you very much,
Mahin
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05187 seconds