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
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
Get step-by-step solutions from verified subject matter experts
