Tuesday February 24th, 2015
So for this post, I will give a summary of my understanding of object-oriented programming concepts. But before I get to that, I would like to talk about term test 1, assignment 1, and the upcoming assignment 2. The results for the first term test and assignment were very good, since I got an 84% and 85% respectively. I was quite worried about what mark I would receive for assignment 1, but now after receiving my mark, I cannot complain. I also found the term-test wrapper to be quite helpful with reviewing the test since it asked me to reflect on how I prepared for the test and what I may or may not have done correctly. Hopefully I can keep up the good marks that I have been getting in this class for the rest of the term.
As for my brief summary...
From what I have noticed, I think the purpose of CSC148 is to teach students that everything in Python is an object. Whether that be classes, functions, modules, methods, etc. and they can all be passed as arguments to functions and methods. These things can also be assigned to variables (which are also objects!) and can be passed as arguments to functions and methods as well. Object-oriented programming is using these things for simple arithmetic operations or for complex modules such as in assignment 1. Basically, everything that I have ever done in Python can be considered as object-oriented programming.
When we create our own types or classes, these things are also objects but we are simply manipulating the set of standard types (ie. str, int, bool, etc.) that are already in Python. However, regardless of which we use, we are still programming with objects, hence, we are still object-oriented programmers.
No comments:
Post a Comment