I've been programming since 2014 of August, with my first programming language being done on visual basic.
I've learned the basics of C++ and have an understanding in Java, C#, HTML, and CSS.
The code below is a team project. This is the class for a wizard that was written with a teammate
public class Wizard
private N spellPower;
private T title;
private F firstName;
private L lastName;
public Wizard()
{
//spellPower = 0;
//title = "Soldier";
//firstName = "Jim";
//lastName = "Johns";
}
public Wizard(N param1, T param2, F param3, L param4)
{
//New objects have the information entered in this order.
spellPower = param1;
title = param2;
firstName = param3;
lastName = param4;
}
public Wizard(N param1, T param2, F param3)
{
spellPower = param1;
title = param2;
firstName = param3;
}
public void setSpellPower(N param)
{
spellPower = param;
}
public void setTitle(T param)
{
title = param;
}
public void setFirstName(F param)
{
firstName = param;
}
public void setLastName(L param)
{
lastName = param;
}
public N getSpellPower()
{
return spellPower;
}
public T getTitle()
{
return title;
}
public F getfirstName()
{
return firstName;
}
/*public L getLastName()
{
if(lastName != null)
return lastName;
else if(spellPower > 5000)
return "Their name was lost to the ages...";
else
return "No family name.";
}*/
public String toString()
{
if(lastName != null)
return title + " " + firstName + " " + lastName + " with a spell power of " + spellPower;
else
return title + " " + firstName + " with a spell power of " + spellPower;
}
}