TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Fri, 1 May 1998 22:20:28 -0400
text/plain (8 lines)
>Using discriminants to serve the role as parameters to constructors
>seems to be inappropriate, unless their values are seen as relevant
>throughout the life of the object.  If they are only affecting the
>initial value of the object, it would seem to be better ...
So you would prefer not to specify the Initial_Color of a Car_Type
along with its Make and Model, but rather take the default color
and then paint it?  Why does that seem to be better?