thamail

thamail

  • NA
  • 3
  • 0

Simple Question: Classes in C#

Jul 7 2004 6:23 PM
Hi all, Im having some problems getting started with C#. I can't compile the classes which I need to the ASP.NET application im trying to build, and I can't seem to understand why ... For example, when I try to compite the following code ( > csc MyStrategy.cs ): abstract MyStrategy { public abstract string decideStrategy(string name, string pw); } or public class MyStrategy { public string decideStrategy(string name, string pw){ return "..."; } } the compiler tells me that I need an entry point defined. I need a few classes to do some work for me in the ASP.NET pages that im trying to make - my plan was to make a few classes, compile them and them "embed" them in the code - just as you would do in, say a JSP page. Thanks in advance - Jim T.

Answers (4)