You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/Lecture6.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@
4
4
-[Multiple Inheritance](#multiple-inheritance)
5
5
-[Association](#association)
6
6
-[Facade pattern](#facade-pattern)
7
-
-[Implement Subsytems](#implement-subsytems)
7
+
-[Implement the Subsystems](#implement-the-subsystems)
8
8
-[Create Files](#create-files)
9
9
-[Imports](#imports)
10
10
-[Define the TrafficLightSubsystem](#define-the-trafficlightsubsystem)
11
11
12
12
## Multiple Inheritance
13
-
Multiple Inheritance is used to inherit the properties of multiple es. However, Python does not allow multiple inheritance from es that have incompatible memory layouts at the C level, which is common with hardwares in MicroPython.
13
+
Multiple Inheritance is used to inherit the properties of multiple classes. However, Python does not allow multiple inheritance from classes that have incompatible memory layouts at the C level, which is common with hardware in MicroPython.
14
14
15
15
```mermaid
16
16
classDiagram
@@ -33,7 +33,7 @@ classDiagram
33
33
C <|-- D : Inheritance
34
34
```
35
35
36
-
This code snippet is just to demonstrate the concept and syntax of multiple inheritance.
36
+
This code snippet demonstrates the concept and syntax of multiple inheritance.
37
37
38
38
```python
39
39
from led_light import Led_Light
@@ -61,7 +61,7 @@ class Walk_Light(Audio_Notification, Led_Light):
61
61
62
62
## Association
63
63
64
-
Association in Object-Oriented Programming (OOP) describes the relationship between two separate es that are connected, but neither "owns" the other. It simply means that objects of one use or interact with objects of another .
64
+
Association in Object-Oriented Programming (OOP) describes the relationship between two separate es that are connected, but neither "owns" the other. It simply means that objects of one class interact with or use objects of another class.
65
65
66
66
- Association is a broad term for any relationship between classes that is not inheritance.
67
67
- It represents a "uses-a" or "knows-a" relationship.
@@ -135,11 +135,11 @@ classDiagram
135
135
```
136
136
137
137
### Facade pattern
138
-
The Facade Pattern provides a simplified interface to a complex subsystem/s, which shields clients from the complexity of subsystem components. Subsystems help manage complexity, improve modularity, and make systems more maintainable, testable, and understandable.
138
+
The Facade Pattern provides a simplified interface to a complex subsystem, shielding clients from the complexity of its components. Subsystems help manage complexity, improve modularity, and make systems more maintainable, testable, and understandable.
139
139
140
-
Continuing our 'Bottom-Up' approach we will create two subsystems one for traffic and one for pedestrians.
140
+
Continuing our 'Bottom-Up' approach, we will create two subsystems, one for traffic and one for pedestrians.
141
141
142
-
## Implement Subsytems
142
+
## Implement The Subsystems
143
143
144
144
### Create Files
145
145
@@ -148,7 +148,7 @@ Continuing our 'Bottom-Up' approach we will create two subsystems one for traffi
148
148
149
149
### Imports
150
150
151
-
In your `controller.py` include your imports. This imports all the associated classes and the time library needed for the final controller class.
151
+
In your `controller.py`, include your imports. This imports all the associated classes and the time library needed for the final controller class.
0 commit comments