Making your own basic classes
1. A petstore has 5 pets in it.
| ID |
Animal |
Name |
| 1 |
Cat |
Misty |
| 2 |
Dog |
Spot |
| 3 |
Fish |
Swimmer |
| 4 |
Cat |
Blue |
| 5 |
Dog |
Max |
Make a pet object. It needs instance variables, constructors, accessors, mutators and a .equals and a .toString.
Make a petstore object. It has an array of 5 pets and the above data. Print out the array when you are done.