Home » C# Programming » Constructors

What will be the output of the C#.NET code snippet given below? namespace CuriousTabConsoleApplication { class Sample { static Sample() { Console.Write("Sample class "); } public static void CuriousTab1() { Console.Write("CuriousTab1 method "); } } class MyProgram { static void Main(string[ ] args) { Sample.CuriousTab1(); } } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!