Home » C# Programming » Classes and Objects

Which of the following statements are correct about the C#.NET code snippet given below? namespace CuriousTabConsoleApplication { class Sample { int i, j; public void SetData(int ii, int jj) { this.i = ii; this.j = jj } } class MyProgram { static void Main(string[ ] args) { Sample s1 = new Sample(); s1.SetData(10, 2); Sample s2 = new Sample(); s2.SetData(5, 10); } } }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!