Tuesday, 21 January 2014

Object-Oriented Programming

Object-oriented programming (O.O.P.) creates, as the name implies, objects which contain certain attributes and functions. This differs in what we learned in CSC108, in which we learned mainly modular programming, which consists mostly of executions of multiple functions. In doing a bit of research, I found that O.O.P. contains five defining points: encapsulation, inheritance, polymorphism, interface and abstraction. This means that an object, created under a class, contains the data and methods in which to alter or display its attributes and that, though there may be the same method names for separate classes, each method will perform a different task depending on which class it is executing under. In this way, O.O.P. can handle the complexity of programs; however, there are downsides to using object-oriented programming. These include that they require a greater amount of time and effort and are bigger in size compared to other programs.

I have little experience with O.O.P. as 108 mainly taught modular programming, but I hope to learn more about and become better at this type of programming through the 148 course.