[Oberon] Oberon for a python user: Modules and Classes example
Frans-Pieter Vonck
fp at vonck.nl
Mon Nov 14 10:23:45 CET 2016
Following the discussion about modules and classes.
Take a look at a live demonstration of OOP programming in MicroPython by
Tony D of Adafruits.
The webrepl looks like the command line of the Oberon System.
Here is the a live coding example of using classes and modules
https://youtu.be/hOwReBsHq7g?t=18m3s
https://youtu.be/hOwReBsHq7g?t=35m22s
I really appreciate Tony's tutorials.
Greets,
Frans-Pieter
Srinivas Nayak schreef op 2016-11-11 16:59:
> 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/
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related
> systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list