This is the code I have and I am trying to get rid of the error but there is always an error after error even with me looking it up:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lesson02
{
class Rectangle
{
private double length;
private double width;
public Rectangle (double l, double w)
{
length = l;
width = w;
}
public double GetArea()
{
return length * width;
}
}
}
It produces this error: 'Program c:/ ... does not contain a static 'Main' method suitable for an entry point.
I've already changed the Build Action properties and I still get this error. Please let me know what I am missing or need to add.