Class a class method : Class Method : Class Interface C# Source Code


Custom Search

C# Source Code » Class Interface » Class Method »

 

Class a class method









    

/*
Learning C# 
by Jesse Liberty

Publisher: O'Reilly 
ISBN: 0596003765
*/

 using System;

 class MyClass
 {
     public void SomeMethod(int firstParam, float secondParam)
     {
         Console.WriteLine(
             "Here are the parameters received: {0}, {1}",
             firstParam, secondParam);
     }

 }

 public class Tester111
 {
     static void Main()
     {
         int howManyPeople = 5;
         float pi = 3.14f;
         MyClass mc = new MyClass();
         mc.SomeMethod(howManyPeople, pi);
     }
 }
           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Class Interface
» Class Method