Back to the topic, this week I will be summarizing the concept of object_oriented programming which i will refer to as OOP in this slog. To start, OOP is a concept of programming which will save programmer's a lot of time writing duplicated code by using super class and sub class. For example, if I want to write some code that organize all humanity into a database, i would create a super class that contain's general feature's of human (i.e gender, height) and sub classes like student, teacher, engineer. This type of programming style would save a lot of time writing code and would be very useful when we try to sort a groups of people in different arrays. To conclude, OOP is a very useful concept in programming with any language since it is efficient, clear (no more then 1000 line of code in one class), and time saving.
here is a slog that i gave feedback on.
http://hrmvp94.blogspot.ca/2015/02/summary-of-object-oriented-programming.html?showComment=1424472113007#c3219334510117734120
I just wanted to add to your post that OOP concepts eclipse not just class inheritance, but class design and ADT. Also, I found it a little confusing to understand your examples of inheritance. You might want to think it as parent class (organism) and child classes (animals -> humans -> male -> engineers), or something along those lines.
ReplyDelete