comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: child class of limited_controlled not inheriting data
Date: Fri, 5 Aug 2016 22:47:33 +0200
Date: 2016-08-05T22:47:33+02:00	[thread overview]
Message-ID: <no2u1g$1ibn$1@gioia.aioe.org> (raw)
In-Reply-To: 776d0f51-65ec-4a4b-bed1-2d3edef0e526@googlegroups.com

On 2016-08-05 22:26, b.mcguinness747@gmail.com wrote:
> Thank you for your help. Object-oriented code in Ada is a bit
> confusing, and it's sometimes difficult to find the information I need
> in the manual.

Firstly there is nothing confusing in Ada's OO. In fact, it is much 
simpler than C++ OO.

Secondly the issue you have has nothing to do with OO. It is a 
visibility issue.

Thirdly it would be just same in C++ if you declared a private member 
and then tried to use in a derived class.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2016-08-05 20:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 18:59 child class of limited_controlled not inheriting data b.mcguinness747
2016-08-05 19:20 ` Jeffrey R. Carter
2016-08-05 19:36 ` Simon Wright
2016-08-05 19:37 ` Dmitry A. Kazakov
2016-08-05 19:42 ` G.B.
2016-08-05 20:26 ` b.mcguinness747
2016-08-05 20:47   ` Dmitry A. Kazakov [this message]
2016-08-06 19:00 ` rieachus
replies disabled

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