Try:
class programtwo
{
public static void Main()
{
programone.fun();
Console.WriteLine(" language ");
}
}
This will execute the method "fun" from class "programone" before it writes the word "language"
It may be worth adding a second line:
class programtwo
{
public static void Main()
{
programone.fun();
Console.WriteLine(" language ");
Console.ReadLine();
}
}
This will cause the execution to stop until you press the ENTER key: that way you can read what you have written!
Manas Bhardwaj Suggests that you might want the output as a single line, rather than two.
If so, then replace the line:
Console.WriteLine("c sharp");
in the "fun" method with:
Console.Write("c sharp");
And it will work.
[edit]Answer updated - OriginalGriff[/edit]