Page 36 - CA_Blue( J )_Class9
P. 36

A new class name “FirstProgram” is created.

















                  Edit the Class
                  To edit the class, follow these steps:

                  Step 1:  Double click on the class name “FirstProgram”. An editor window called Code Editor View will be opened.
                  Step 2:  There will be some prewritten program code which has to be deleted.

                  Step 3:  Then the program code needs to be typed as shown below.
                  For example, type a program to print a message.
























                  Compile the Program
                  After typing the program, we need to compile and execute correctly. To complete and execute a program, follow
                  these steps:
                  Step 1:   Click  on the  Compile button  in  the
                         code editor window.
                  Step 2:   If your  program is  successfully
                         compiled, a message, Class compiled
                         —no  syntax errors, will  appear  the
                         bottom of the code editor window.
                         Click on Close button.

                  Step 3:   Right-click on the  class icon in the
                         main window of your project.

                  Step 4:   Select  void  main()  option  from the
                         context menu.


                    34    Touchpad Computer Applications-IX
   31   32   33   34   35   36   37   38   39   40   41