|By : Shehrevar Davierwala 1
Executing a program
After creating the program i.e. writing the source code, save the file with .cs extension in a folder on
your system i.e
Go to the folder where your file is saved and compile the program using
by this, a executable file will be generated, if there are no errors in the program. If there are some
errors, appropriate error messages will be displayed and you have to correct the error and then compile
the program again.
The executable file will be generated in the same folder that of the program
For executing the program, run the file in command prompt, note that there is no extension
Documentation section must contain the name, date, program name, other details, name of classes etc.
Using directive section may contain the names of Namespaces that are to be added in the program.
An interface is similar to a class but contains only abstract members. Interfaces are used during
implementing the concept of multiple inheritances in a program. Classes are the primary and essential
elements of a C# program. The number of classes depends on the complexity of the problem. C#
application program requires a Main method as its starting point, the class containing the main is the
essential part of the program.
Using directive section