That is not a program it is a Class.
Assuming you are just trying to create a Console program it could be as simple as
using System;
public class Program
{
public static void Main()
{
}
}
Again, assuming you want to use that code you posted in some way, the first thing you will neeed to do is create an instance of that class.
Every tutorial, book or class I have seen that teaches a coding language starts with a simple program e.g.
using System;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
}
}
Which suggests that you are just diving in with code borrowed from an internet article. Don't try to learn that way, it's hard enough and you are just making it harder for yourself. Follow a structured tutorial or book and do the exercises. Don't try to take shortcuts if you really want to learn
EDIT:
A simple example (untested)
Something like this
public class Program
{
public static void Main()
{
BankAccount myBA = new BankAccount(0);
myBA.Deposit(100.0m);
Console.WriteLine("Balance is {0}", myBA.GetBalance());
}
}
Note you have spelling mistakes in your class code so it shouldn't compile - see
amouont
You might also find this useful
C# Beginner Tutorials | .NET Academy[
^]