comp.lang.ada
 help / color / mirror / Atom feed
From: "Anthony E. Glover" <aglover@elmco.com>
Subject: Setters and Getters - Classwide or Dispatching?
Date: Fri, 6 Jul 2001 09:42:35 -0500
Date: 2001-07-06T09:42:35-05:00	[thread overview]
Message-ID: <I3k17.11641$F%5.755714@e420r-atl2.usenetserver.com> (raw)

What is the best approach for declaring setters and getters for a class -
classwide or primitive subprograms. Classwide would seem to be the best
approach since in all likelihood no one would override the getting or
setting of an attribute; however, this means that the operation is not
inherited by subclasses and requires an additional 'with' and possible 'use'
of the base class in order for the operation to be visible. Any suggestions?

Also, is there any way to call a dispatching subprogram without adding withs
and uses for all of the packages containing the subclasses. I'm refering to
a call that is not part of the parent.child hiearchy.

Thanks,
Tony






             reply	other threads:[~2001-07-06 14:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-06 14:42 Anthony E. Glover [this message]
2001-07-06 15:47 ` Setters and Getters - Classwide or Dispatching? Ted Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox