i have find to how we create a class in to c#.
Tell me to create class (coding) in c#.[any site name]?
This is a Sample class
using System;
public class Sample {
private int x;
public Sample() { } //Constructor
pubilc void Method1() { //Method
}
}
to get an overview of the C# language follow this link http://www.codeproject.com/csharp/quickc...
There are many good websites to learn C#. In my openion 'Codeproject[ http://www.codeproject.com/csharp/ ]' is the best. However 'CSharpCorner[ http://www.csharpcorner.com/ ]' is also a good website
Reply:If I could, I would have uploaded a file which contains detailed explaination for this.
Now you can get it from this link
http://www.geocities.com/omer_akhter/cla...
Reply:class is made by the keyword class. The visibility mode can be public, private and protected like
class student
{
private:
int x, y;
}
Classes can be understood only through good study.....
Herbet Schild, Balaguruswamy, Robert Lafore, etc.. are good books!!
Best of luck!!
Happy studing
Reply:If u know Java, u can use the same syntax.
class Simple{
int a;
public :void disp(){
System.Console.WriteLine("This is a Sample Program");
}
};
public static void main(String [ ] args){
Simple s=new Simple();
s.disp();
}
deliver flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment