Edp Chap 3part 1
Edp Chap 3part 1
Chapter 3: Object-Oriented
Fundamentals in C#.NET
Part_1
To output values or print text in C#, you can use the WriteLine() method.
In C#, the simplest method to get input from the user is by using the ReadLine() method of
the Console class. However, Read() and ReadKey() are also available.
C# Comments
Comments can be used to explain C# code, and to make it more readable. It can also be used
to prevent execution when testing alternative code.
C# Single-line Comments
o Single-line comments start with two forward slashes (//).
o Any text between // and the end of the line is ignored by C# (will not be executed).