We were given this project to do, it was said to be simple but we've only been doing c# for a week, hope someone can help...
It's not that i didn't try!!! i did but it did not work...the code i typed is at the bottom..please see if you can improve this..
Everything is public:
We have to create a Main Class called Mutant which has to be abstract--this contains :
CodeName(String),Level(int), DangerQuotient(int & abstract) and DisplayInfo
The other 3 classes are called:
PsychicMutant
--this contains: IQ(int),
UsageCount(int)
and
DangerQuotient
()
PhysicalMutant
--this contains: IQ(int),Strenght(int) and DangerQuotient()
ElementalMutant
--this contains: Region(int), DangerQuotient()
There are formulas that work out the Danger Quotient for each class but i can do that lol
All this is linked to an interface called
IDisplayable
which contains (
public DisplayInfo()
)
Please Help....I would really appreciate it Thanks
//Code That i did!
==Interface Class==
interface IDisplayable
{
void DisplayInfo();
}
==Mutant Class==
abstract class Mutant:IDisplayable
{
static void Main (String[]args)
{
public string CodeName;
public int Level;
void DisplayInfo();
abstract int DangerQuotient();
}
}
==Psychic Mutant Class==
class PsychicMutant:Mutant
{
public int IQ;
public int UsageCount;
public int DangerQuotient()
{
}
==Physical Mutant Class==
class PhysicalMutant:Mutant
{
public int IQ;
public int Strenght;
public int DangerQuotient()
{
}
==Elemental Mutant Class==
class ElementalMutant:Mutant
{
public int Region;
public int DangerQuotient()
{
}
P.S i asked for help only or even guidelines, i really did not expect 2 get the answer. I am a hard worker 2 and this was my last resort....Sorry if i gave the wrong impression