Thursday 23 January 2014

Object Oriented Programming Jan 23rd

The primary focus during these past few weeks in CSC165 has been about object orientated programming. Although OOP was introduced in CSC108, the primary focus was on procedural programming wherein we wrote functions which acted upon data. In OOP, the primary focus is on objects which combine functions as well as data. An example of this would be an object class Point which we wrote in class. The Point class allowed us to initialize a set of coordinates as well as write functions within the class itself, such as converting it to a string or moving coordinates. One of the main advantages that I enjoy about working with OOP is its clear structure. Everything is clearly organized in a logical framework which makes it easy to define complicated functions, modify existing code, and reading comprehension.