[Oberon] Oberon for a C++ user.

Srinivas Nayak sinu.nayak2001 at gmail.com
Fri Nov 11 16:59:38 CET 2016


Import is Not Inheritance
Why We Need Both: Modules and Classes
by Clemens A. Szyperski

discusses in detail on classes, types and modules.


With thanks and best regards,

Yours sincerely,
Srinivas Nayak

Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/

On 09/27/2016 09:11 PM, Srinivas Nayak wrote:
> In this thread, my initial doubt was my confusion between Record and Module.
> I was not able to understand why Records provide unrestricted access (to its members) to outsiders.
> But Modules controls outsider's access.
> While in C++, Structures and Classes which are like Oberon Records, do control outsider's access.
>
> Today I found its answer in Object Oriented Programming in Oberon 2, in 4.2. Classes and Modules.
> Reason is efficient access.
>
> And Module is the feature in Oberon that supports Encapsulation and Abstraction, not Record.
>
>
> Kindly correct me if I am wrong.
>
>
> With thanks and best regards,
>
> Yours sincerely,
> Srinivas Nayak
>
> Home: http://www.mathmeth.com/sn/
> Blog: http://srinivas-nayak.blogspot.in/


More information about the Oberon mailing list