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=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d357c68840f5c0bb X-Google-Attributes: gid103376,public From: dweller@universe.digex.net (David Weller) Subject: Re: Common base class in Ada95 Date: 1997/11/10 Message-ID: <647ogm$mul@universe.digex.net>#1/1 X-Deja-AN: 289029280 References: <647iu1$etr@server.cs.vt.edu> Organization: Express Access Online Communications, Greenbelt, MD USA Newsgroups: comp.lang.ada Date: 1997-11-10T00:00:00+00:00 List-Id: In article <647iu1$etr@server.cs.vt.edu>, Siva Challa wrote: > >I am new to Ada95. I have a general question. Is there anything similar >to a common base class(like the Object class in Java) in Ada95? > No. Ada classes, like C++ classes, are organized as a "forest" of classes. No single tree, but several trees. There's advantages and disadvanteges to both approaches. Smalltalk developers will go on (and on and on :-) about the beauty and ease of having everything derived from a single tree (like Java, the root is called "Object"). Personally, I've found the "forest" approach much more flexible. But it's important that you draw experience from both "types" of OO languages (as well as different variations like CLOS). You will find that each language has good things and bad things, and that the concept of a Grand Unified Language is about as elusive in programming languages as it is in Physics :-) Good luck on your journey! -- ****** NEW!! DoD Ada Hotline Number: 1-800-PARIAH ****** I refuse to let spammers control my e-mail address. You don't have to remove anything to send me e-mail. Do what I do: Save your "spam", print it out, and mail it once a month to your Congressman. TAKE BACK THE INTERNET!