American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7pm – Intro to Java – Roland

May 1 @ 7:00 pm - 8:00 pm

Today We Did
    1. Homework Review
    2. SchoolSystem Project
      1. and
        1. Constructors
        2. Attributes & Private Variables
        3. Getters & Setters
  1. Create a new Java file and create the program below.
    1. Make an Animal class
      1. The animal class should have the following attributes (make sure they’re set to private!)
        1. name (string)
        2. type (string)
        3. age (int)
        4. can_fly (boolean)
      2. Create getters and setters for every attribute
      3. Make a void method called “printInfo” which prints out all the attributes in a single line
        1. You have the freedom to make it say whatever as long as all of the class’s attributes are printed in the same message
  2. Upload your answer to google drive before next week Tuesday night.

If you have any questions feel free to email me


May 1
7:00 pm - 8:00 pm
Verified by MonsterInsights