How to understand java is an object-oriented language?

To understand the problem? A lot to consider

1. What is Object Orientation

    The problem is decomposed into steps, and each step is abstracted accordingly to form an object. The problem is solved by calling and combining different objects. That is to say, in object-oriented programming, attributes, behaviors, etc. should be encapsulated into an object, and then implement the business logic based on the object

2. What is process-oriented

    Divide the problem into steps one by one, each step is implemented by a function, and then called in turn. That is to say, in process-oriented programming, you don't need to think too much, let's define a function first, and then use various if- -else--, for--each-- and so on for code execution.

3. Three basic characteristics and five basic principles of object-oriented

   Three basic characteristics: encapsulation, inheritance and polymorphism.

  Remember the Five Fundamentals of Object Orientation - HollisChuang's Blog

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324518139&siteId=291194637