Think in Java (1)

Source: Internet
Author: User

OOP programming thought that everything is the object, and in the design class, it is from our lives or some things to abstract a common attribute, the common behavior of the description (class). In the actual development, we generally do not consciously do this: suppose there is a person (class), he/she has the age, sex and other attributes, and then people will eat, sleep and so on these behaviors. Define a Class (Humanbeings) first when designing. Then we define the attributes in it, then we use the interface (which defines the behavior of the person), define an interface (ihunmanbeingactive), and define the person's eating, sleeping, etc. in the interface. When we want to manipulate this class, we implement (implement) this interface.

Think in Java (1)

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.