Thursday, 12 February 2015

Week 6 - Object-Oriented Programming concepts

  So far in this course, we become more and more familiar with the concept of Object-Oriented Programming.  To my understandings so far,(I might not be 100% correct) that Object-oriented programming (OOP) uses the concept of objects to design and program applications.

  In other words, it is a type programming based on programming classes with instance called objects.  This brought up a question, what exactly is the definition of an object?  An object is a location in memory assigned a value and potentially referenced by an identifier.  An object can be a variable, a data structure, or a function. In a class, object can be a combination of variables, functions, and data structures.  For example in a class such a employee or perhaps school, the object in which might be the most basic element in the class.  Where the salary implemented as an int and the student name implemented as a string would be classified as the objects in particular class.

  To me, this is more easily said than done.  During assignment 1, often I would create the class and later notice that I've missed certain elements most commonly objects.  It is easy to picture the class as a whole yet easily lacking the consideration for the smaller but also important elements.

No comments:

Post a Comment