next up previous contents
Next: Creating an object Up: 8 Object oriented programming Previous: 8 Object oriented programming   Contents

Introduction to object orientation (OO)

By now you have mastered all the basics that enable you to write programs that will perform all the calculations you need. However we have not yet touched upon the style of programming that Java was really designed for, object orientation, or 00. There can be great advantages in writing your programs in an object oriented way. This section should serve as an introduction to 00 programming in Java. If after this you wish to find out more, try chapter 6 of [1] and chapter 2 of [2].

This section will require you to start thinking about classes in a different way. However, despite the different style, you will still need the Java covered previously in the course. Also bear in mind that, however a program is written, when running the program the computer always starts with the one and only main method.



RHUL Dept. of Physics