American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

12 PM – Intro To Java – Gamas

January 15, 2022 @ 12:00 pm - 1:00 pm

Today We Do
  1. We created Restaurant class with 3 attributes: name, type and capacity.
  2. We continued with RestaurantSystem, added 2 features: add new restaurant and list all restaurants.
Homework
  1. Create getter and setter of Restaurant.name and Restaurant.capacity.
  2. For setCapacity method, check inside the method if the capacity is less than 1, then don’t set the capacity, but print “Invalid capacity, it has to be 1 or more”.
  3. In listAllRestaurant method, print restaurant info like the following “<restaurant name> – <type> – <capacity> people.” . For example, “Kang Ho Dong – Korean BBQ – 50 people”

Details

Date:
January 15, 2022
Time:
12:00 pm - 1:00 pm
Event Categories:
,
Verified by MonsterInsights