A class is a logical grouping of attributes, properties or fields and methods.
Declaring a class
C# code snippet
public class Customer
{
public int ID;
public string name;
public string phone;
public Order GetLastOrder()
{
return new Order();
}
}
No comments:
Post a Comment