I'm learning C# off the MSDN website, but Visual Studio give me errors in the underlined/red bits.Code:using System;
class Animal
{
string kindOfAnimal;
string name;
int numberOfLegs;
int height;
int length;
string color;
bool hasTail;
bool isMammal;
bool spellingCorrect;
}
static void Main()
{
Animal fiddleSticks;
fiddleSticks = new Animal();
fiddlesticks.kindOfAnimal = "Cat";
fiddlesticks.name = "Fiddlesticks The Cat";
fiddlesticks.numberOfLegs = 4;
fiddlesticks.height = 50;
fiddlesticks.length = 80;
fiddlesticks.color = "Black";
fiddlesticks.hasTail = true;
fiddlesticks.isMammal = true;
}
}
I've checked the code thrice, and as far as I can see, there's nothing wrong.
Does anyone know why they come up?

