Basics

Extra

If you are familiar with object-oriented programming, you may know that a class defines the operations an object can perform, such as methods, events, or properties, and defines a value that holds the state of the object. Although a class generally includes both definition and implementation, it can have one or more members that have no implementation.

An instance of a .NET Framework class is an object. You can access an object's services by calling its methods and accessing its properties, events, and fields. Each language chooses its own syntax for creating instances of classes.

The C# language is case sensitive. This will be one of the first bugs you will find when compiling your C# application. To avoid problems with case sensitivity, you can use an editor and compiler that assists by being compliant with the case sensitivity.

¿3 Untitled Notepad

¿3 Untitled Notepad

—O Click File O Save to open the Save As dialog box.

I Click Save

■ The source file saves to the directory and can now be compiled.

Note: You can save all of your console applications in a specific directory (example: C:\CSharp).

—O Click File O Save to open the Save As dialog box.

Type a name for the file.

I Click Save

■ The source file saves to the directory and can now be compiled.

Note: You can save all of your console applications in a specific directory (example: C:\CSharp).

Was this article helpful?

0 0

Post a comment