2c# programs are organized into classes
Every C # program is organized into classes. A class can do anything, but most classes do only one particular thing. When you create this program, the IDE adds a class called Form1 to display the form.
The 3 class contains methods for performing actions.
When you have something to do, you use the method. Methods accept input, do some processing, and sometimes have output. Enter parameters to pass to the method. The different behavior of the method depends on the different parameters. Some methods output output. At this point, the output is called the return value. If the method has a void keyword before it, the value is not returned.
41 instructions to perform an action
When you add the MessageBox.Show () line to the program, you write an instruction. Each method is made up of instructions. The program calls a method that first executes the first instruction, then the next, next, and so on. When the method finishes executing the instruction or encounters a return instruction, it stops, and the program returns to the call place.