Java object-oriented-13 days study notes

Process-oriented & object-oriented

  • Process-oriented thinking

The steps are clear and simple, what to do in the first step, and what to do in the second step... Facing the process, it is suitable for handling some simpler problems

  • Object-oriented thinking

The thinking mode of clustering and classification of things, thinking about the problem will first solve the problem which classifications are needed, and then think about these classifications separately. Finally, the process-oriented thinking is carried out on the details of a certain category.

  • Object-oriented is suitable for dealing with complex problems, suitable for dealing with problems that require multi-person collaboration!

For describing complex things, in order to grasp the macroscopically and analyze rationally from the overall perspective, we need to use object-oriented thinking to analyze the entire system. However, specific to micro-operations, still need a process-oriented thinking to deal with.

What is face-to-face

1. Object-orientde Programming (object-orientde Programming) abbreviation oop
2. The essence of object- oriented programming is to organize code in a class , and encapsulate data in an object organization

abstract

Three characteristics

  • Encapsulation
  • inherit
  • Polymorphism

From a cognitive perspective, there is an object first and then a class. Objects are concrete things. The class is abstract, it is the abstraction of the object.

From the code point of view, there are classes before objects. Classes are templates for objects.

Guess you like

Origin blog.csdn.net/yibai_/article/details/114768272