Saturday, June 28, 2014

C# Tutorial for Beginners 11 - Introduction to C# Methods







using System;
namespace MyProject.Examples
{
    class ExampleOne
    {
        public static void Main()
        {

                //ExampleOne eOne=new ExampleOne();
                //eOne.sum();
                ExampleOne.sum();
                Console.ReadKey();
        }

        public static void sum()
        {
            int no1 = 364, no2 = 234;
            int add = no1 + no2;
            Console.WriteLine("Addition\t\t{0}", add);
        }
    }
}








































-----------------------------------------------

Searches related to introduction to method in c#

c# process tutorial

c# function definition

c# extension methods tutorial

c# anonymous methods tutorial

c# lambda function tutorial

c sharp method

Introduction to the Methods of a Class

Introduction to Classes, Objects, Methods

Searches related to method in c#

abstract method in c#

finalize method in c#

dispose method in c#

anonymous method in c#

virtual method in c#

split method in c#

tostring method in c#

main method in c#

No comments:

Post a Comment