why i can't run my program it's says CS5001: exe does not contain a static 'Main' method suitable for an entry point
This is my Code in C#:
using System;
class Human
{
private int _distance = 0;
private int _wordsSpoken = 0;
public void Walk()
{
Console.WriteLine("Walking");
_distance++;
}
public void Speak()
{
string[] phrases = {
"How are you?",
"It is a lovely day. Isn't it?",
"It's a pleasure to meet you.",
"Hello.",
"A pleasant morning to you."
};
Random rand = new Random();
int index = rand.Next(phrases.Length);
Console.WriteLine(phrases[index]);
_wordsSpoken++;
}
public void Hop()
{
Console.WriteLine("Hop");
_distance += 2;
}
public int Distance
{
get { return _distance; }
}
public int WordsSpoken
{
get { return _wordsSpoken; }
}
}