Does Ada come with built-in GUI, and does it have the same unique approach to inheritance as does Oberon?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, Ada does not come with a built-in GUI; but then the closest language that I can think of is PostScript. (Technically, the Java-language does not; though its included library does.) That being said there is a GTK binding (which I haven’t used at all) and an OpenGL binding (that I’ve only played with; and to be honest the OpenGL binding is far thinner a binding than I’d like).
Oberon’s inheritance model (as I understand) is single-extension inheritance which is the same as Ada; though Ada does incorporate an Interface system similar to Java. I haven’t actually used Oberon, so I can’t really provide you with a side-by-side examples for the two, but can show you an example of Ada’s.
Base:
Extension:
With bodies of, say:
Which given an object of type P {P : K.Base’Class:= K.Extended'(Others => <>);} could be called like so:
And would produce the following results in this instance: