C# chap 3

241 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
241
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

C# chap 3

  1. 1. |By : Shehrevar Davierwala 1 Chapter 3 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 program_name.cs Go to the folder where your file is saved and compile the program using csc program_name.cs 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 program_name.exe For executing the program, run the file in command prompt, note that there is no extension program_name Program structure 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. Documentation section Using directive section Interfaces section Classes section Main Method Section

×