A class is the most common kind of reference type. - CSharp Custom Type

CSharp examples for Custom Type:class

Introduction

The simplest possible class declaration is as follows:

Demo Code

using System;/*from w  w  w.  jav  a  2s  .  c o  m*/
class Test
{
   static void Main(){
      YourClassName y = new YourClassName();
      Console.WriteLine(y);
   }
}
class YourClassName
{
}

Result


Related Tutorials