Calling function in C#

Callingfunct.cs

class zzz
{
static void Main()
{
abc();
}
static void abc()
{
System.Console.WriteLine (“Hell”);
zzz a=new zzz();
a.bbc(); //HAVE TO CREATE TO CALL NON STATIC
ggg(); // CALL STATIC DIRECTLY
}
void bbc()
{
System.Console.WriteLine(“Hi”);
ccc(); //SAME TYPE CALL DIRECTLY
}
void ccc()
{
System.Console.Write(“BYE”);
}
static void ggg()
{
System.Console.Write(“Adios”);}
}

Callingfunction.cs
class callingfunction
{
static void Main(){

abc();
}
static void abc(){
System.Console.WriteLine(“Function called from main”);
}
}

Related posts :

  • Calling dll and Calling int C# code
  • Background flash java script
  • Change background color when you double-click
  • Change a User’s Password (w/o Active Directory).
  • Change desktop wallpaper
  • Virtual Override
  • Tip of the day script
  • Leave a Comment