Objects Exercises

  < Previous  Next >
  1. Do the following in Java code:
    1. Think of something that you can touch
    2. Write a class that models that object
    3. Store at least one attribute about that object in your class
    4. Write a method to display that attribute
    5. Write a method to change that attribute
    6. Instantiate at least two objects of your class