Java object-oriented three feature brief (essay)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.