Skip to content

Commit e4bc615

Browse files
Update Lecture6.md
1 parent 4cb144a commit e4bc615

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tutorials/Lecture6.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
- [Multiple Inheritance](#multiple-inheritance)
55
- [Association](#association)
66
- [Facade pattern](#facade-pattern)
7-
- [Implement Subsytems](#implement-subsytems)
7+
- [Implement the Subsystems](#implement-the-subsystems)
88
- [Create Files](#create-files)
99
- [Imports](#imports)
1010
- [Define the TrafficLightSubsystem](#define-the-trafficlightsubsystem)
1111

1212
## 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.
1414

1515
```mermaid
1616
classDiagram
@@ -33,7 +33,7 @@ classDiagram
3333
C <|-- D : Inheritance
3434
```
3535

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.
3737

3838
```python
3939
from led_light import Led_Light
@@ -61,7 +61,7 @@ class Walk_Light(Audio_Notification, Led_Light):
6161

6262
## Association
6363

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.
6565

6666
- Association is a broad term for any relationship between classes that is not inheritance.
6767
- It represents a "uses-a" or "knows-a" relationship.
@@ -135,11 +135,11 @@ classDiagram
135135
```
136136

137137
### 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.
139139

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.
141141

142-
## Implement Subsytems
142+
## Implement The Subsystems
143143

144144
### Create Files
145145

@@ -148,7 +148,7 @@ Continuing our 'Bottom-Up' approach we will create two subsystems one for traffi
148148

149149
### Imports
150150

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.
152152

153153
```python
154154
from led_light import Led_Light

0 commit comments

Comments
 (0)