Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lfa:lab02-dfa [2021/10/08 13:16]
pdmatei [2.2. The Dfa Algebraic Datatype (Haskell)]
lfa:lab02-dfa [2021/10/13 16:13] (current)
ioana.georgescu [Classes in Python]
Line 10: Line 10:
 class Example: class Example:
    # the class constructor.    # the class constructor.
-   ​def ​__init___(self,​param1,​param2):​+   ​def ​__init__(self,​param1,​param2):​
       # the keyword self is similar to this from Java       # the keyword self is similar to this from Java
       # it is the only legal mode of initialising and referring class member variables       # it is the only legal mode of initialising and referring class member variables