Just now, I had a little piece of Java to ask me about three kinds of object-oriented features, I gave him a simple explanation, the following is my ten years of Java object-oriented features of the simple description:
Packaging
Encapsulation is to abstract the attributes and behaviors of a thing and write it into a class, which is classified according to the nature of the thing. That is, the public properties and methods of abstract things.
Inherited
And we human inheritance is similar, is Lao Tzu Some things son also have, as long as the son inherit from Lao Zi is ok.
Polymorphic
The same class can have the same method, but the parameters of the same method are different.
This article is from the "Cowboy" blog, make sure to keep this source http://fangniuwa.blog.51cto.com/10209030/1750688
Java object-oriented three feature brief (essay)