Tuesday, July 14, 2009

I need C# help!!!!!?

I desperately need help with C#. I don't know how to add public string instance fields to a class or add constructors. I also don't know how to take one text argument and set it to a field. Please help! Give me an example.

I need C# help!!!!!?
If you are using VB C# Express, you could easily look it up with the help functionality. Otherwise you could declare public string instance files to a class by opening up the class file and declaring it within that class:





private int 0; //private declaration


public string "Hello"; //set text to field + public scope


//Personally I usually declare fields as private





A CONSTRUCTOR WOULD BE:


public Coords(int x, int y)


{


this.x = 0


this.y = 0


}


//It would be executed every time the method is called.








Hope this helps,


Jon
Reply:try it from


http://tutorialofc.blogspot.com/


No comments:

Post a Comment