From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8aa66100f2e75cee X-Google-Attributes: gid103376,public From: "Samuel A. Mize" Subject: Re: OO ADA? Date: 1997/06/04 Message-ID: <33957493.41C6@magellan.bgm.link.com>#1/1 X-Deja-AN: 246057449 References: <01bc700d$83a5d3e0$8f03ec83@owesa96.slip.adfa.oz.au.adfa.oz.au> Organization: PSI Public Usenet Link Newsgroups: comp.lang.ada Date: 1997-06-04T00:00:00+00:00 List-Id: Shaun Owen wrote: > > I'm learning ada at uni but I see lots of posts concerning OO programming. > I have a very limited grasp of OOP, but can someone just give me a brief > explanation on OOP in ada please? Will I have the necessary routines in > my GNAT307 compiler for MSDOS to write an OO program? Since GNAT provides Ada 95, yes. (The previous standard -- Ada 83 -- did not provide full automated support for object-oriented programming.) However, Ada 95 is not just an "object-oriented language." The facilities for object-oriented programming are embedded in a larger context providing support for multi-tasking, system decomposition and strong typing (among other features). The basis of OOP in Ada is the "tagged type." This corresponds to one use of "class" in C++ (the construct "class" is used several ways in C++). I suggest you try the Ada tutorials at adahome (http://www.adahome.com). You should be able to get a brief but careful overview of the object-oriented features. If you want to look further into the design of Ada's OOP support, you can download a copy of the Ada 95 Rationale from http://sw-eng.falls-church.va.us/ (or ftp://sw-eng.falls-church.va.us/). For the OO story, read Part Two, Section 4. Then I suggest you read Part One Section I, and Part One Section II.1 - II.5. This should give you a good grounding in how Ada's OO support is designed, and why. Samuel Mize -- -- Samuel Mize (817) 619-8622 "Team Ada" -- Hughes Training Inc. PO Box 6171 m/s 400, Arlington TX 76005