Class declaration with one public method. : public : Class Interface C# Source Code


Custom Search

C# Source Code » Class Interface » public »

 

Class declaration with one public method.








    



using System;

public class MyClass
{
   public void DisplayMessage()
   {
      Console.WriteLine( "Welcome to the Grade Book!" );
   }
} 

public class MyClassTest
{
   public static void Main( string[] args )
   {
      MyClass myMyClass = new MyClass();
      myMyClass.DisplayMessage();
   }
}

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Class Interface
» public