From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: on Ada abtract data type vs. OOP. Date: Fri, 9 Sep 2022 16:04:46 +0200 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 9 Sep 2022 14:04:47 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="ab2a0df89d8581b3f22c5992c45bdb91"; logging-data="1126068"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mQ8fkNRkJrwYzk4mdmz+5Y48RJHjXzYg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Cancel-Lock: sha1:0/85u07Z9fgp6jxrlvhIsyOdmeA= Content-Language: en-US In-Reply-To: Xref: reader01.eternal-september.org comp.lang.ada:64302 List-Id: 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