Week 6: Classes & Objects in Java
This week, we will learn how to create classes using three basic parts: instance variables, constructors, and instance methods. We will also learn how to instantiate different objects.
Table of contents
Slides
You can find the link to the slides presentation here.
Zoom Recording
Below is the zoom recording for Week 6.
Classwork
You can find the two classwork exercises we did here. If you want to compare your answers, view the classwork solutions for the Point and Book classes. You do not have to submit classwork anywhere.
Homework
You can find the homework exercises here. Please submit your java file by Thursday, March 4th to hhrd.compsci@gmail.com.
If you want to compare your answers, you can view the homework solutions for the Player class and Platform class. Solutions to the optional homework will be posted soon.
Check-In
Here is the link to the short quiz.
Extra Reading
If you want to practice what we learned and learn more about Java outside of class, look at the readings below:
- Classes & Objects (Review)
- toString() Method
- .equals() vs ==
- Overriding .equals()
- Multiple Constructors
- Inheritance