Object-Oriented Programming is, in the eyes of a novice such as myself, the use of "objects," which are copies of each other with the same properties (referred to by most programmers as "attributes") and have the same functions (or "methods"). Another important thing to note about objects is that you can create subclasses of objects, which share similar attributes and methods, but can be specialized further. Obviously, this is an extremely reductionist summary, as there are probably a ton of intricacies that I am still unaware of.
At first, I had a lot of trouble understanding objects and subclasses, but I found a video that really helped me visualize and understand the practical usage of object-oriented programming:
http://youtu.be/yJunB_tV1QI
I think that object-oriented programming is extremely useful, as it allows the programmer to reduce a lot of code, especially when dealing with a problem that requires code to be reused. It allows for the code to look a lot "cleaner", in my experience.
No comments:
Post a Comment