public class Eagle : Bird
{
public Eagle():base()
{ }
public Eagle(string name, string id, double age, CategoryType category, GenderType gender, BirdSpecies birdSpecie)
: base(name, id, age, category, gender)
{
birdSpecie = BirdSpecies.Eagle;
}
public override string ToString()
{
}
Why is it that the second formatted string works
return string.Format("{0} {1} {2} {3} {4}", Name, ID, Age, Category, Gender);
whereas
return string.Format("{0}", base.ToString());
fails to do so. Is it due to some mix-up with the constructors? Is the default empty constructor that is causing the error?