War and Violence
May 9, 2020
Give details about your experience abroad
May 9, 2020
Show all

C# Abstract Class Implementation

/ Hello! The instructions on this one are below. The instructor says it should only take 5-10 minutes to do! It mentions an abstract class example of the animal. I will include the image shown to us in the attachments as Animal.jpg! Thank you!!

Lets go back to our D&D game program idea. You are now creating the character generator explanation portion. So eventually we want to make our program so that, if the user has no idea what he wants to be, he can select one of the character types and it will explain to them what that character can do.

So, using the abstract class example of the animal, you will create a base-class called characterinfo.
In this class you should have two modules (like in the Dungeon and Dragons style game program that you developed and altered previously):
The introduction module will simply say: You are looking at the fighter style classes. Be warned, you will be in the thick of all the fighting!
The second module will be the one you will override and be used for text. You may name this how you wish.

Using the abstract class you should have two derived classes: Fighter and Paladin.
You will override the second module to give more specific details of the fighter and paladin.

Fighter: The fighter is one of the standard classes in Dungeons & Dragons. A fighter is a versatile, weapons-oriented warrior who fights using skill, strategy and tactics. Fighter is a generic and broad class but can be tailored the players ideas.

Paladin: The paladin is a holy knight. Paladins crusade on behalf of their chosen deity and could be either good or evil (anti-paladin). Because the deity grants their powers, they are also considered a limited divine spellcaster.
In the main module you will call both to show that they work (Like in like in the Dungeon and Dragons style game program that you developed and altered previously).

Leave a Reply

Your email address will not be published. Required fields are marked *