Page 1 of 1

Your code will be compiled as C++14, make sure you use appropriate syntax. The Entity class has been supplied for you in

Posted: Thu Jul 14, 2022 2:11 pm
by answerhappygod
Your Code Will Be Compiled As C 14 Make Sure You Use Appropriate Syntax The Entity Class Has Been Supplied For You In 1
Your Code Will Be Compiled As C 14 Make Sure You Use Appropriate Syntax The Entity Class Has Been Supplied For You In 1 (112.69 KiB) Viewed 32 times
Your code will be compiled as C++14, make sure you use appropriate syntax. The Entity class has been supplied for you in the entity.h file. - You do not need to change this file. Write a class called Player in the file player.h. - Player should publicly inherit from the Entity class provided. - Player should have a constructor that takes no arguments. - A Player is an Entity with a maximum health of 100. - Player should have a method called heal - heal takes no arguments. - heal returns nothing. - Calling the heal heal method of a Player should increase the health of the Player by 10. - The health of a Player should never be greater than the maxHealth.