Page 53 - iPlus_Ver_2.0_class_8
P. 53

Animal




                                         Cat                    Tiger                    Dog

                 All the animals in the animal class have similar behaviours such as eating, drinking, and they also
                 have similar properties, such as colour, size, and number of legs.

                 In the same way, a class in Java contains different types of objects that have similar properties
                 and behaviour. After declaring a class, we can create many number of objects from it.

                  i +  INTRODUCING BLUEJ

                 Previously, we used simple text editors such as Notepad to develop Java programs. With the
                 advancement in technology, there are different types of Integrated Development Environment
                 (IDE) available free of cost. Some of the IDEs are Netbeans, Eclipse, and BlueJ. In this chapter, we

                 are using BlueJ.
                 BlueJ is an IDE designed for beginners. It has a built-in editor,
                 debugger, and viewer. An editor gives us an area where we can
                 write programs, and a debugger allows us to find errors in the
                 programs. On the other hand, the viewer shows the output of

                 the program.
                 BlueJ is a freely downloadable application. We can download it
                 from https://www.bluej.org/. After downloading the application,
                 we need to install it on our computer.

                  i +  INTERFACE OF BLUEJ

                 After installing the BlueJ IDE, double click on the BlueJ application icon. The BlueJ application
                 window appears.


                             Menu Bar
                             New Class
                               Button
                              Compile
                               Button

                            Project Icon









                         Object Bench







                                                                                                                  51
                                                                                               Program Coding
   48   49   50   51   52   53   54   55   56   57   58