Sister school to teach Java (XXI): article takes you understand all of the concepts of object-oriented programming

You okay, I was silent king, is the author of "Web Development Advanced full stack of the road", the CSDN blog star. "Sister school to teach Java" is a very interesting column to pay, in addition to continue to maintain a humorous style MORALS, I strive to put every point thoroughly understand knowledge to ensure that you can benefit from it, to become a good Java engineer. Benpian to talk about all the concept of "object-oriented programming" in the.

Because it is the first time pay column, so there is a certain pressure, although only 9.9 yuan, but my own requirements is to reach at least $ 199 standard, so as to be worthy of all the love my readers. I very much hope that you can share your feelings and experiences with me , if you happen to have this idea, then please add my micro letter (qing_geee) tell me. In addition, I also set up a number of high-quality technical exchange group, invited a lot of great coffee, Tencent, the US group, PDD, and if necessary I'll pull you.

"Brother, today we are content to learn is 'all the concepts Object-oriented programming', right?"

"Yes, Sanmei. Object-oriented programming, three words come --Object-Oriented Programming, in this area there are many languages, such as C #, Python, PHP, and Java. There are several very important concept, For example, objects, classes, abstraction, inheritance, and polymorphism, they will get to know the program easier to understand. "

01, Object

Everything is objects, tables, stools, giant panda, the Monkey King, either physical presence, or a logical thought. As long as they have the status and behavior. The giant panda is an object, he will eat bamboo will sleep (behavior), the color is black and white (state).

Object is an instance of a class has its own address in a computer, and will occupy part of the memory.

02, class

Class defines an object model member variable defines the properties of objects, such as the giant panda color; method defines the behavior of objects, such as giant pandas eat bamboo.

Guess you like

Origin blog.csdn.net/qing_gee/article/details/105284592