Summary of
Object-Oriented Programming concepts
The main concept
of object-oriented programming is that, differed from the traditional concept
which people treat the program or machine as a whole and people command the
program to work, here every little piece of the program can be seen as a small
program contained in the program, which also has the same abilities as the
“whole” program such as analyzing data and sending data and they can work on
their own.
The relationship
between class and subclass is an example of this concept.
When we build a
class and a subclass under this class.
The class is the
“whole” I mentioned above, it is a program or like a machine, it can function
by itself and do things like collecting, analyzing data. However, its subclass
can also function in the same way, collecting analyzing data on its own.
All in all, the
concept is saying that when programming, people are building a machine, not
only the machine can function by itself, so does every tiny piece of the
machine, and the machine and its pieces are the objects in programming. Those
little pieces, which is called the objects, including a class, a function, an
instances and so on.
I didn’t
understand this concept very well at first, so I decided to search it online
and I also checked other student’s slog to see if they wrote about this, and
they both help me understand the concept better.
No comments:
Post a Comment