Question: use java, test the code to make it sure it works. MAKE SURE AN INSTANCE OF THE CLASS CANNOT INTERACT WITH EACHOTHER. Do not create

use java, test the code to make it sure it works. MAKE SURE AN INSTANCE OF THE CLASS CANNOT INTERACT WITH EACHOTHER. Do not create more than 1 class.
 use java, test the code to make it sure it works.
Charcter.java : do not change character .java but you can add methods in the abstract class interact.
MAKE SURE AN INSTANCE OF THE CLASS CANNOT INTERACT WITH EACHOTHER. Do

Unfriendly Character Subclass . Create a class called Unfriendly which is a subclass of Character. Implement a constructor to fully instantiate the object. Take in a String representing the characters name. This class should always have a max health of 15 Upon creation "The name's [name]. I'm not friendly." should be printed. Override and implement the interact abstract method from Character Whenever this class interacts, "[name]: What are you looking at [other character name] !?" should be printed out An instance of this class cannot interact with itself

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!