diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2025-04-24 17:39:37 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2025-04-24 17:39:37 -0600 |
| commit | 2d2b7b9f5731dc5c7bda29c917a6cc5f17b5160e (patch) | |
| tree | b566dc6e44f9e63abc94a18f6697010ea981ab89 /tutorials/module_1/classes_and_objects.md | |
| parent | e53c35223bed9a32f1e9cd3fe75caf344d4b5c7e (diff) | |
Updated markdown formatting for latex conversion.
Diffstat (limited to 'tutorials/module_1/classes_and_objects.md')
| -rw-r--r-- | tutorials/module_1/classes_and_objects.md | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tutorials/module_1/classes_and_objects.md b/tutorials/module_1/classes_and_objects.md index ec85633..3b30746 100644 --- a/tutorials/module_1/classes_and_objects.md +++ b/tutorials/module_1/classes_and_objects.md @@ -6,7 +6,6 @@ - B. Why use OOP? (vs. procedural) - C. Real-world analogies (e.g., modeling components like pumps, motors, or vehicles) ---- ## 2. Core OOP Concepts - A. **Classes and Objects** - Definitions @@ -24,21 +23,18 @@ - Method overriding - Flexibility in interfaces ---- ## 3. Python OOP Syntax and Examples - A. Define a simple class (e.g., `Spring`) - B. Instantiate objects and use methods - C. Show `__init__`, `__str__`, custom methods - D. Add a derived class (e.g., `DampedSpring` inherits from `Spring`) ---- ## 4. Engineering Applications of OOP - A. Modeling a mechanical system using classes - Example: Mass-Spring-Damper system - B. Creating reusable components (e.g., `Material`, `Beam`, `Force`) - C. Organizing simulation code with OOP ---- ## 5. Hands-On Coding Activity - A. Write a class for a basic physical component (e.g., `Motor`) - B. Add behavior (e.g., `calculate_torque`) |
