Home » C# Programming » Constructors

Which of the following statements is correct about the C#.NET code snippet given below? namespace CuriousTabConsoleApplication { class Sample { public int func() { return 1; } public Single func() { return 2.4f ; } } class Program { static void Main(string[ ] args) { Sample s1 = new Sample(); int i; i = s1.func(); Single j; j = s1.func(); } } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!