What is the correct syntax to declare a method named Display inside a class named Person in C#?
A. Display { public void }
B. public void Display() { }
C. void Person::Display() { }
D. None of the above
Answer: Option B
A. Display { public void }
B. public void Display() { }
C. void Person::Display() { }
D. None of the above
Answer: Option B
A. A blueprint for creating objects
B. A method in C#
C. A variable in C#
D. A data type in C#
A. A method in C#
B. A variable in C#
C. An instance of a class
D. A data type in C#
A. public
B. private
C. protected
D. internal
Join The Discussion