What is Object Oriented Programming?
Object Oriented ProgrammingW (OOP) in the simplest of forms is grouping all of the data and functions that operate on a particular thing together. An example might help. Suppose you were told to build a banner that changed content at regular intervals and the content for the
banner was to be retrieved from an http URL. We know we are going to need a variable to hold the change interval for the banner. We will probably need a variable to hold the URL that we get the banner content from. We might need a function to send the request for the new banner data. We might need a function to render (display) the new banner data. And of course we need some sort of way to control it.
Now we know all of the parts that are required to build the dynamic banner. So now lets design our object. More »