|
Grab a Piece of Paper! |
For each of the following, write the constructor signature and write a statement to create on object of this class.
| Constructor |
Constructor Signature |
Create an Object |
| public VideoGameCharacter(String name, int level, int health) |
|
|
| public Pet(String name, String species, int age) |
|
|
| public Movie(String title, String genre, int rating) |
|
|
| public PlayList(String name, int numberOfSongs, boolean isPublic |
|
|
| public Snack(String name, boolean isSpicy) |
|
|
| public SportsTeam(Stirng teamName, String mascot, int wins) |
|
|
| public ThemeParkRid(String name, int heightRequirement, int waitTime) |
|
|
| public Robot(String name, String job, boolean isCharged) |
|
|