Question: You will write a program that builds on the ideas and concepts you have learned throughout this course, including the use of OOP principles, which

You will write a program that builds on the ideas and concepts you have learned throughout this course, including the use of OOP principles, which are introduced in chapters 10 and 11. Your program will include a Superclass called Humanoids, followed by three subclasses called Humans, Elves and Dwarves. All three subclasses will inherit the base features associated with the Humanoid class, but each will contain a few additional methods that help distinguish them from one another.
class Humanoid attributes:
Height (3ft-7ft)
Weight (60lbs-300lbs)
Hair color (white, silver, gray, black, brown, green, blue, yellow, pink, red, blonde)
Eye color (white, black, red, green, blue, brown, purple, amber)
Strength (1-18)
Dexterity (1-18)
Constitution (1-18)
Intelligence (1-18)
Wisdom (1-18)
Charisma (1-18)
class Humans:
+2 to any attribute of the user's choice
class Elves:
100% Resistance to Sleep (can't be put to sleep)
Gain +2 to their Dexterity and Charisma scores
class Dwarves:
You will write a program that builds on the ideas

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!