Home » C# Programming » Classes and Objects

Which of the following statements is correct about the C#.NET code snippet given below? class Sample { private int i; public Single j; private void DisplayData() { Console.WriteLine(i + " " + j); } public void ShowData() { Console.WriteLine(i + " " + j); } }

Correct Answer: There is no error in this class.

← Previous Question Next Question→

More Questions from Classes and Objects

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion