- Create a model that includes properties, and actions that on the properties (get/set)
- Create a simple class with only a constructor
- Explain what a class is and why they are useful
- Add methods to a class
- Explain why getters and setters are useful, and add getters and setters to a class
- Explain what a static method is, and add a static method to a class
- As a class, lets model a backhoe, including properties and actions.
- With your groups, model a house, including properties and actions.
- On your slate, create a class name
Person
that has propertiesfname
andlname
that are passed in the constructor.
- With your group discuss what classes are and why they are useful
- On your slate, add a method to the
Person
class namedfullName()
that returns the propertiesfname
andlname
concated.
- With your group, explain why getters and setters are useful
- With your group, add getters and setters for
fname
,lname
, and changefullName()
to a getter
- With your group, explain why static method is useful
- With your group, add a new property
age
, create setters and getters, and create astatic
method namedgetOldest
that takes 2Person
objects and it returns the olderPerson