* Help Ada and Object-Oriented Methodologies
@ 1995-02-27 19:53 Francisco San Martin Roman
0 siblings, 0 replies; 6+ messages in thread
From: Francisco San Martin Roman @ 1995-02-27 19:53 UTC (permalink / raw)
Could somebody help me ? I need to know if object-oriented concepts like
encapsulation, abstraction, inheritance, modularization can be implemmented in Ada
programming. As you can see, I've never used Ada programming languaje and I need
a little example for each (if any).
Francisco San Martin Roman.
frsanmar@campus.mor.itesm.mx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Help: Ada and object-oriented methodologies
@ 1995-02-27 19:58 Francisco San Martin Roman
1995-02-27 22:24 ` WLawton
1995-02-28 2:19 ` David Weller
0 siblings, 2 replies; 6+ messages in thread
From: Francisco San Martin Roman @ 1995-02-27 19:58 UTC (permalink / raw)
Could somebody tell me if object-oriented concepts (abstraction, encapsulation,
modularization, inheritance) can be implemmented in Ada programming? I'd like to
receive a little example of each (if any). As you can see, I've never used Ada.
Francisco San Martin Roman.
frsanmar@campus.mor.itesm.mx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help: Ada and object-oriented methodologies
1995-02-27 19:58 Help: Ada and object-oriented methodologies Francisco San Martin Roman
@ 1995-02-27 22:24 ` WLawton
1995-02-28 2:19 ` David Weller
1 sibling, 0 replies; 6+ messages in thread
From: WLawton @ 1995-02-27 22:24 UTC (permalink / raw)
I recommend the book "Object-Oriented Modeling and Design", by Rumbaugh,
et.al. The book contains several examples of sample OO concepts
implemented in several different languages, including Ada83.
Hope this helps...
Wayne R. Lawton I said it, I believe it to be true,
Various Affiliations No excuses, No caveats.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help: Ada and object-oriented methodologies
1995-02-27 19:58 Help: Ada and object-oriented methodologies Francisco San Martin Roman
1995-02-27 22:24 ` WLawton
@ 1995-02-28 2:19 ` David Weller
1 sibling, 0 replies; 6+ messages in thread
From: David Weller @ 1995-02-28 2:19 UTC (permalink / raw)
In article <FRSANMAR.95Feb27135825@p76.mor.itesm.mx>,
Francisco San Martin Roman <frsanmar@mor.itesm.mx> wrote:
>
> Could somebody tell me if object-oriented concepts (abstraction, encapsulation,
>modularization, inheritance) can be implemmented in Ada programming? I'd like to
>receive a little example of each (if any). As you can see, I've never used Ada.
>
A good starter book would be "Ada From The Beginning, 2nd ed" by Jan
Skansholm. I don't have the ISBN handy, as my 14 year-old son has
swiped it and is reading it. I like to indoctrinate them young :-)
--
Frustrated with C, C++, Pascal, Fortran? Ada95 _might_ be for you!
For all sorts of interesting Ada95 tidbits, run the command:
"finger dweller@starbase.neosoft.com | more" (or e-mail with "finger" as subj.)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Help: Ada and Object-Oriented Methodologies
@ 1995-02-25 18:41 Francisco San Martin Roman
1995-02-27 20:03 ` Bob Kitzberger
0 siblings, 1 reply; 6+ messages in thread
From: Francisco San Martin Roman @ 1995-02-25 18:41 UTC (permalink / raw)
I need to know how can I use object-oriented concepts
(modularity, hierarchy, abstraction, encapsulation) in Ada
programming? I've never used Ada and I'll really appreciate
your help and examples for each concept implemmentation.
Francisco San Martin Roman.
frsanmar@campus.mor.itesm.mx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Help: Ada and Object-Oriented Methodologies
1995-02-25 18:41 Help: Ada and Object-Oriented Methodologies Francisco San Martin Roman
@ 1995-02-27 20:03 ` Bob Kitzberger
0 siblings, 0 replies; 6+ messages in thread
From: Bob Kitzberger @ 1995-02-27 20:03 UTC (permalink / raw)
[tried email, but it bounced...]
There are two versions of the Ada standard: Ada 83, which supports
object-based programming; and Ada 95 which supports object-oriented
programming directly.
For a discussion of Ada83 object-based programming, see Booch's book
(the first edition) of "Object Oriented Design with
Applications". Basically, you define a class as a private type, and
encapsulate it and all of its functions in a package, e.g.:
-- Ada 83 object-based example
with Color; -- other classes referenced
with Manufacturer; -- "
package Automobile is
type Object is private;
function Create( The_Color : Color.Object;
The_Manufacturer : Manufacturer.Object )
return Object;
procedure Destroy ( The_Auto : in out Object );
function The_Color( Of_Auto : in Object ) return Color.Object;
function The_Manufacturer( Of_Auto : in Object ) return
Manufacturer.Object;
...etc other selectors/accessors/etc...
private
type Object is ...
end Automobile;
Using this "class":
My_Car : Automobile.Object :=
Automobile.Create( Color.Hunter_Green,
Manufacturer.Jeep );
...
C : Color.Object := Automobile.The_Color( My_Car );
For Ada95 clases, inheritance, etc. see the Ada 95 reference manual
(poke around in the <A HREF="http://lglwww.epfl.ch/Ada/"> Home of the
Brave Ada Programmers </A>
--
Bob Kitzberger +1 (916) 274-3075 rlk@rational.com
Rational Software Corp., 10565 Brunswick Rd. #11, Grass Valley, CA 95945
"...the solution to the problem is usually to pee on it" -- Dave Barry
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1995-02-28 2:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-27 19:53 Help Ada and Object-Oriented Methodologies Francisco San Martin Roman
-- strict thread matches above, loose matches on Subject: below --
1995-02-27 19:58 Help: Ada and object-oriented methodologies Francisco San Martin Roman
1995-02-27 22:24 ` WLawton
1995-02-28 2:19 ` David Weller
1995-02-25 18:41 Help: Ada and Object-Oriented Methodologies Francisco San Martin Roman
1995-02-27 20:03 ` Bob Kitzberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox