Object-Oriented Programming: in Oberon-2 by Hanspeter Mössenböck PDF

By Hanspeter Mössenböck

ISBN-10: 354056411X

ISBN-13: 9783540564119

ISBN-10: 3642974791

ISBN-13: 9783642974793

This booklet describes a realistic method of object-oriented programming and layout. After explaining the elemental ideas of object-orientation the e-book indicates with quite a few practical examples how this system can be utilized to jot down extensible and well-structured software program. It mentioned general layout styles and indicates implementation thoughts for often happening difficulties to be solved with object-oriented programming. Object-oriented programming is programming within the huge. even though it is feasible to give an explanation for the elemental recommendations withsmall examples it is important to check huge and lifelike functions as a way to comprehend the facility and style of this new procedure. consequently the e-book comprises the layout and whole resource code of a pragmatic case examine - a window approach with extensible textual content and images editors. The programming language utilized in this e-book is Oberon-2, the newest offspringof the Pascal and Modula-2 kinfolk of languages constructed at ETH Z}rich. along with pleasurable the primary specifications of contemporary software program such asstrong variety checking, modularity and object-orientedness one of many significant benefits of this language is its simplicity. a person who is aware Pascal may also learn Oberon-2 courses. Compilers for Oberon-2 in addition to the resource code of the case research during this publication are freely on hand from ETH.

Show description

Read Online or Download Object-Oriented Programming: in Oberon-2 PDF

Best object-oriented design books

Hibernate Quickly by Patrick Peak PDF

A concise advent to Hibernate's many configuration and layout thoughts, this publication distills Hibernate into digestible items with many code examples, useful utilization situations, and assurance of the instruments on hand to builders writing Hibernate purposes. utilizing a move slowly, stroll, run instructing technique, builders will examine what Hibernate is, what it could do, and the way it may be used successfully.

Download PDF by David Robinson: Aspect-Oriented Programming with the e Verification Language

What’s this AOP factor besides, really―when you get down to it―and can an individual please clarify what a side really is? Aspect-Oriented Programming with the e Verification Language takes a practical, instance dependent, and enjoyable method of unraveling the mysteries of AOP. during this ebook, you’ll learn the way to:• Use AOP to prepare your code in a manner that makes it effortless to house the stuff you particularly care approximately on your verification environments.

Download e-book for iPad: Model Driven Architecture and Ontology Development by Dragan Gaševic, Dragan Djuric, Vladan Devedžic, Bran V.

Defining a proper area ontology is mostly thought of an invaluable, to not say useful step in virtually each software program undertaking. the reason for this is that software program offers with rules instead of with self-evident actual artefacts. besides the fact that, this improvement step is hardly performed, as ontologies depend on well-defined and semantically robust AI suggestions akin to description logics or rule-based platforms, and such a lot software program engineers are principally unexpected with those.

Martina Seidl, Marion Scholz, Christian Huemer, Gerti Kappel's UML @ Classroom: An Introduction to Object-Oriented Modeling PDF

This textbook in most cases addresses newcomers and readers with a simple wisdom of object-oriented programming languages like Java or C#, yet with very little modeling or software program engineering adventure – hence reflecting the vast majority of scholars in introductory classes at universities. utilizing UML, it introduces simple modeling techniques in a hugely distinct demeanour, whereas refraining from the translation of infrequent distinct situations.

Extra resources for Object-Oriented Programming: in Oberon-2

Example text

Rider); PROCEDURE (r: NewRectangle) Fill (pat: Pattern) END There is a very important difference: Rectangle is compatible with Figure because it is an extension of Figure, while NewRectangle is not compatible with Figure although it contains the same fields and methods as Rectangle. NewRectangle is a completely different type. 2 Compatibility of a Base Type and Its Extension Every Rectangle object is also a Figure object! This is the revolutionary aspect of object-oriented programming. It means that all algorithms that work with Figure objects can also work with Rectangle objects.

Their implementation is hidden behind an interface that remains unchanged, even if the implementation changes. Abstract data structures have a state that can be modified by means of access procedures. The state is expressed in the values of the data structure and serves to store values between successive procedure invocations. In Oberon-2, abstract data structures are implemented as modules that hide the data from clients by not exporting them. The priority queue thus becomes the module PriorityQueue with the following interface: Information hiding State DEFINITION PriorilyQueue; VAR n-: INTEGER; (* number of elements') PROCEDURE Insert (x: INTEGER); PROCEDURE Remove (VAR x: INTEGER); PROCEDURE Clear; END PriorityQueue.

END M; ... M ... ") A: Yes. The record referenced by p is passed as a variable parameter to M. On the other hand, a message must not be sent to a record object if the formal receiver parameter is a pointer. This means that the following situation is forbidden: VAR r: Ree; PROCEDURE (p: Ptr) M1; ... END M1; ... M1 ... (*this is iIIegar) 47 48 4 Classes A record cannot be passed to a pointer. When both variables of type Ptr and variables of type Rec are used and messages are to be sent to both, the formal receiver parameter of the methods must be declared as a record.

Download PDF sample

Object-Oriented Programming: in Oberon-2 by Hanspeter Mössenböck


by Joseph
4.3

Rated 4.30 of 5 – based on 49 votes