At the end of this lesson, you will be able to:
- understand what a Class Diagram is and make one
- go over Using OOP, Chapter 8
- Computer Based Problem Solving
- "Encapsulation" & "Constructors"
- Encapsulation means hiding the private variables behind the methods
- Constructors are used to set certain properties at the time they are instantiated
- demo of the constructor for Bicycle class
- see code example below and online textbook
- create a constructor for your "Vehicle" class
- what should they be able to set when a Vehicle is made
- what should be optional
- what should they not be able to set when a vehicle is make
- work on the weekly assignment
- read over Using OOP, Chapter 8
- Computer Based Problem Solving
- "Overloading Methods"