Question: In Java plz Task 7 Players can restore their health by drinking potions. Write a void method drink() that takes a Potion as an argument.
In Java plz


Task 7 Players can restore their health by drinking potions. Write a void method drink() that takes a Potion as an argument. It should increase the Player's health points by the potion's benefit. However, the maximum health of a Player is 100 and cannot increase beyond that. public void drink(Potion potion) \{ \} Task 8 Write a main program in the file Adventure.java that has gameplay that exactly goes like this. Copy this main program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
