Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 Charcter.java : do not change character .java but you can add methods in the abstract class interact.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started