next up previous contents index
Next: A simple example Up: Physics 2101 - Scientific Previous: CGI scripts   Contents   Index

Objects Oriented Programming

In this section we will discuss a fundamental shift in how we approach problems when programming. Up to now we have been using a function oriented approach, involving some main script plus subroutines to carry out certain oft-used tasks. In object-oriented programming one works with what are called objects, which tie together in a fundamental way the data associated with a program and the tasks needed to be done with that data.