201671010130 2016-2017-2 "Java Programming" third week study summary

Source: Internet
Author: User

Learn Java Third week summary
    1. Two ways to learn about input through the classroom: 1) input device 2) file a) streaming file b) data file
    2. The data under private is accessible only to instances within the class.
    3. Encapsulation provides secure access.
    4. Generally starting with get_ is the accessor method set_ begins with the change method.
    5. This week, we mainly learn the basic concepts of classes and objects: figuring out the specific entities that an object is present, and having well-defined states and behaviors. A class is a collection of sets of objects that have the same properties and behavior.
    6. In Java, you can customize the class, and I feel very similar to a custom function in the C language. Class is a body of classes that contains two of content (instance fields and methods).
    7. A constructor is required to construct a new class, the constructor is the same as the class name, the constructor does not return a value, and is always called with the new operation.
    8. The This keyword can reference any member of the constructor in a class.
    9. This week's learning is the most fundamental feature of Java, but I think I need time to solidify the foundation.

201671010130 2016-2017-2 "Java Programming" third week study summary

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.