GMT20231004-173352_Recording_1920x1080.mp4
Module 5 - Classes and Objects
https://docs.google.com/document/d/1h5lOxSXyMdoRTZSp2pSOAT22AQrk1BLiRPAdQFUb6N4/edit#heading=h.gjdgxs
This week we will review:
- Quick review of organizing your code into Functions
- Introducing Object Oriented Programming
- Defining a Class and it's Constructor
- Creating Objects from a Class
- Defining variables within Objects
- Defining Methods (Functions) within Objects
- Moving your Class definition to another Javascript File
The example from this Review Session:
https://editor.p5js.org/des8963/sketches/6XCHAe75D
Want to see more examples? The example from last semester’s Review Session. It is similar but it’s wheels move and you can change the width and height of the truck: