Question: 1. Create a Super Hero and Super Hero Tester classes. The SuperHero class should contain a constructor that accepts the name, superpower, num Mediums* parametes,

 1. Create a Super Hero and Super Hero Tester classes. The

1. Create a Super Hero and Super Hero Tester classes. The SuperHero class should contain a constructor that accepts the name, superpower, num Mediums* parametes, the constructor header should look like this SuperHero(String aName, String aSuperPower, int aNumMediums). There should be 3 getter methods in the class, one to return the name (named getName(), one to return the superPower (named getSuperPower()) and one to return the number of Mediums(named getNum Mediums()). There should be 3 setter methods in the class, one to change the name (named setName(String new Name)), one to change the superpower (named setSuperPower(String new Super Power)) and one to change the numMediums (named setNumMediums(int new NumMediums)). Your SuperHeroTester class should test the constructor and all 6 of the getter/setter methods. DON"T FORGET COMMENTS FOR YOUR METHODS. Use the chart for sample superhero data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create the SuperHero and SuperHeroTester classes in Java follow these instructions SuperHero Clas... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!