Answered step by step
Verified Expert Solution
Link Copied!

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.
image text in transcribed
Charcter.java : do not change character .java but you can add methods in the abstract class interact.
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions