comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: on Ada abtract data type vs. OOP.
Date: Fri, 9 Sep 2022 16:04:46 +0200	[thread overview]
Message-ID: <tffh5v$12blk$1@dont-email.me> (raw)
In-Reply-To: <tff174$1qc6$1@gioia.aioe.org>

On 2022-09-09 11:32, Nasser M. Abbasi wrote:
> 
> The only difference I see between Ada's ADT and OOP, is that
> in Ada, the data itself is separated from the package and must
> be passed to the package methods at each call. The data lives
> in the client side.
> 
> While in OOP, the data lives inside the object. (these are called
> data memebers).

You seem to be confused about where data "live". Whether you use programming by 
composition or by extension, the data live in the object of the type that the 
client declares.

-- 
Jeff Carter
"You tiny-brained wipers of other people's bottoms!"
Monty Python & the Holy Grail
18

  parent reply	other threads:[~2022-09-09 14:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09  9:32 on Ada abtract data type vs. OOP Nasser M. Abbasi
2022-09-09 10:49 ` Dmitry A. Kazakov
2022-09-09 14:37   ` antispam
2022-09-09 15:21     ` Dmitry A. Kazakov
2022-09-09 15:30   ` Dmitry A. Kazakov
2022-09-09 14:04 ` Jeffrey R.Carter [this message]
2022-09-09 15:06 ` antispam
2022-09-11  8:02   ` G.B.
replies disabled

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