« All Events
10 AM – Intro To Java
July 24, 2021 @ 10:00 am - 11:00 am
Today We Do
- We created Student class
- We learned about class attributes and its access modifiers: private, public, protected, <default>
- We learned about getter and setter
Homework
- For Student class, create the getter and setter for all its class attributes. Look at how we did for name attribute.
- Call age getter and setter class from SchoolApplication.
- Create a new class Teacher with 4 class attributes: name, age, expertise, and any 4th attribute that you like.
- Create Teacher constructor method. Constructor is like __init__ in python.