Java Question

Problem Overview
In OOP we model our problems using objects that we can manipulate. To create and use
objects, we need to write classes. Classes are a sort of a blueprint that describes the properties
and behaviour of the objects we want to create.
In this assignment we are going write classes representing Characters for RPG games similar to
World of Warcraft and others. Our game will have different kinds of Characters and Attacks. We
will use Inheritance to reduce duplicated code, allow for easy expansion of the game’s base
carachters (and attakcs), and explore polymorphic behaviour.
In a real-world scenario we would also be leveraging the concepts of Interfaces to write the
code. We will see interfaces in the near future; however, because we are a little behind in the
schedule we will not have interfaces on this assignment.
After you finish this assignment, try to answer the following questions:
• How diffictulry it would be to add a new type of character to the game?
• What code do you need to change to add the new character?
• How difficult would it be to implement our game without using inheritance?

DETAILED ASSIGNMENT

20210329154752assignment_03

Powered by WordPress