Walking on the way

xiaoxiao2021-03-05  23

I learned about Java for nearly a year, and now I have finally been aware of Java. When C learning is not good, there is no contact with C, which may lead to a lot of interference when I understand the object-oriented concept. However, there is no way, there is less and more object-oriented contrast. May also make me a little bit of understanding of object-oriented, but I don't know this deviation. Object-oriented objects in Houjie translations: Everything is all objects. My understanding is that object is a kind of thinking habit, regarding an object as a whole, this overall has his attribute. So in the establishment of the model, it is necessary to consider the properties and methods of the object. Attributes and methods cannot be existed separately, must depend on an object, ie object. This may be a write object when writing a program. The reason for the method ( Remember in C . It is an object mark, there is a certain meaning). I have a lot of students who have just contacted Java. Their mistakes often don't know what is object. I originally have a lot of deviations, always I feel that a class is an object. This understanding is actually inappropriate. The establishment of an object must first be aware of this object. This object has played a role in the entire framework, understand The concept of this object should be very clear. Of course, there is too much system object for a big item, and there is also a lot of divisions. But there is a principle in this: reuse, easy scarability, good packaging This is also an object-oriented feature. Maybe these features are very clear, but they may have problems when they are applied in the project, what kind of procedure is reused, how the architecture is Easy to expand, how can packages can be just right, this is actually very learned, recently made a project, two almost the same business logic, I realize one, another one is no longer, give the boss The reason is that their logic is almost the same. In the end, I can inherit the following, the total is the code you write a few lines. I feel that it is a bit big ~~. Structure of my first business I have a strong doubt. Oh, I can't make a reuse of a code (copy the code over, change the code), but this violates the original intention of the object. Now think about, there is still an experience and level of experience. Otherwise, there is no so-called cattle and mortal. It is also the most difficult to grasp the object-oriented characteristics (for the person of my level), this requirement not only quite clearly, opposite the object The understanding is also very thorough, I am far away. But no matter what, I have already gone in the level of writing code and writing code, and I am beginning to pursue the perfection of the code. This is also my write code. Beginning to enter another realm. Finally, a meditation is ended for the expression of the realm:

The first situation: "Where the leaves are full, where to find a trace."

The second situation: "The empty mountain is no one, the water flows."

The third situation: "Wanchao long, one dynasty". "

转载请注明原文地址:https://www.9cbs.com/read-35868.html

New Post(0)