Home > Back-end >  Now learn javaSE object-oriented understanding is not very good will affect the back of the study?
Now learn javaSE object-oriented understanding is not very good will affect the back of the study?

Time:11-22

Hope to have a great god guide what is the key to work or study in the future!! Abstract things a bit difficult to understand

CodePudding user response:

Actually not difficult to understand, change my way of thinking,
May first contact, coding of thinking has not changed, "come here, so feel code this thing very astringent, object-oriented, discrepancy and the knowledge a lane, the brain is a paste, when in fact most people first begin to contact code are the same, more than a few times came slowly turns code,
Abstract this kind of things, for example: the person is an abstract class, he has some properties, such as limbs, facial features; There are some methods, such as eating, drinking, sleeping,
And then to a specific point of subclasses, limbs have hands and feet; Taurus has ears eyes nose mouth, etc.; Eat slowly, Wolf, etc.; Sleep sleep sitting, lying down to sleep, etc.,
Code of thinking with the average of thinking a little difference, but everything comes from life, and abstract and higher than life,

CodePudding user response:

Affecting affirmation is some, do you think you understand bad nothing now, and will use, such as later what a bug, you to change the bugs will deepen your understanding, of course you also ready to take on these bugs pan , is simply the theory and practice will learn faster, deeper understanding

CodePudding user response:

reference 1st floor aw277866304 response:
actually not difficult to understand, have to do is change my thinking,
May first contact, coding of thinking has not changed, "come here, so feel code this thing very astringent, object-oriented, discrepancy and the knowledge a lane, the brain is a paste, when in fact most people first begin to contact code are the same, more than a few times came slowly turns code,
Abstract this kind of things, for example: the person is an abstract class, he has some properties, such as limbs, facial features; There are some methods, such as eating, drinking, sleeping,
And then to a specific point of subclasses, limbs have hands and feet; Taurus has ears eyes nose mouth, etc.; Eat slowly, Wolf, etc.; Sleep sleep sitting, lying down to sleep, etc.,
Code of thinking with the average of thinking a little difference, but everything comes from life, and abstract and higher than life,
ha ha ha yes learn one with clear brain meng force collapse

CodePudding user response:

Java is a multi-paradigm language, in fact most of the engineers or stay in imperative programming, don't understand is normal, object-oriented out working on ten seven or eight years can't ~ ~ said he is proficient in object-oriented programming

CodePudding user response:

Java is an object-oriented programming, so that a still more important, I just learn always is in a state of fog, after a long time get to know the meaning of "object" is also slowly understand, so don't relax and don't be afraid

CodePudding user response:

Can be understood as a program of object-oriented program, like a small program in WX, a class is a independent small programs, run the small programs are in the same way that a new kind of (), the running of the small program is the object, the specifications say, this is encapsulation, data and process of a group of related to a as an independent module, express, in class this kind of structure on the basis of the packaging to derive polymorphism, inheritance and so on concept,

CodePudding user response:

Is temporarily don't understand, temporarily to understand this concept, behind much flash, but I still want to think more

CodePudding user response:

Java object-oriented is very important and difficult part of the need to understand little by little, and spend more time no problem

CodePudding user response:

This is a process of gradual enlightenment, slowly don't worry, I also learned a period of time, people think that is what all properties method in object, in the calling method, first the new objects, or it will offer null pointer

CodePudding user response:

Practice is the best way to understand d

CodePudding user response:

Now I was learning object-oriented, the inside of the class and method, parameter real CanYi lane, plus method calls, the mixing piece also feel like paste, head ache, '

CodePudding user response:

Said simple point is in fact a encapsulation process, I need write in the class, the class object is described, when I created the class object, the object has the class describes the properties of the I through inheritance, realization to change classes, they changed the object of the class descriptions,
I define a "people" of the class, I define a "student class", people have a name, number, eat, sleep properties, such as students also have a name, number, eat, sleep, such as properties, lets the student class inherits the human, so students class also has these attributes, and students class is used to describe objects, so students object will have these attributes,
Is the embodiment of class, object is equivalent to the car, class is equivalent to automobile manufacturing drawings, manufacturing drawings itself is described by cars have the properties of the
  • Related