User Tools

Site Tools


python:python_misc:oo_fundamentals_with_python

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
python:python_misc:oo_fundamentals_with_python [2018/11/30 18:23] – [Next steps] mithatpython:python_misc:oo_fundamentals_with_python [2018/11/30 18:28] – [Behavior] mithat
Line 40: Line 40:
 ==== Behavior ==== ==== Behavior ====
  
-A given microwave oven also has predefined **behavior**.+A given microwave oven also has predefined **behavior**:
  
   * //Push the "1" button// → start cooking at maximum power for one minute.   * //Push the "1" button// → start cooking at maximum power for one minute.
-  * //Push the "+30sec" button// → add 30 seconds to the cooking time if it's already cooking or start cooking for 30 seconds at maximum power otherwise.+  * //Push the "+30sec" button// → start cooking for 30 seconds at maximum power or add 30 seconds to the cooking time if it's already cooking.
   * //Push a magical combination of buttons// → set the internal clock.   * //Push a magical combination of buttons// → set the internal clock.
   * And so on.   * And so on.
  
-These operations are ones that happen to be public-facing (i.e., operations a user can engage). There might very well also be operations that go on inside the oven to support the oven's functioning that the user will never be aware of. All these operations collectively define the oven'behavior. We call the public-facing behavior (i.e., the operations a user can engage) the oven's **interface**.+These operations are ones that happen to be public-facing (i.e., operations a user can engage). There might very well also be operations that go on inside the oven that the user will never be aware of to support the oven'functioning. We call the //public-facing behavior// (i.e., the operations a user can engage) the oven's **interface**.
  
 ====  Encapsulation and protection ==== ====  Encapsulation and protection ====
python/python_misc/oo_fundamentals_with_python.txt · Last modified: 2018/11/30 18:45 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki