201671010143 2016-2017-3 "Java program-oriented" weekly knot

Source: Internet
Author: User
Tags define abstract

The first two weeks we learned the most basic knowledge of Java, the third chapter equivalent to rely on the C language knowledge of the Java language to consolidate and review the C language. This week we counted into the fourth, objects and classes, the first chapter has a lot of knowledge points, relatively scattered, but there are close links.

such as the difference between classes and objects
1, a class is an abstract concept that does not exist in real time/space, and classes simply define abstract properties and behaviors for all objects. It is like the "person" class, which can contain many individuals, but it does not exist in the real world itself.
2, the object is a specific class. It's a real thing.
3, a class is a static concept, and the class itself does not carry any data. When no objects are created for a class, the class itself does not exist in memory space.
4, the object is a dynamic concept. Each object has its own unique properties and behaviors that are distinct from other objects. The properties of an object can change as its own behavior occurs.

I think this chapter constructor is a more focused knowledge. Constructors are a very important concept in Java and C # Learning, and constructors can provide a number of special methods, constructors as a method for initializing member variables (domains) in a class. Instance constructors are divided into default constructors and non-default constructors. The best use of a constructor is to perform initialization when an object is created, and when an object is created, the system initializes the instance of the object with the default initialization. If you want to change this default initialization, you can do so by customizing the constructor.

Of course, this chapter also has a lot of key knowledge, such as static domain and static method, the import of classes in the package, static import, put the class in the package and so on.

Although I know the contents of this chapter, but I have not fully chewed, I will use their spare time to read more books and practice, tamping their basic knowledge in this area.

I hope our teachers and classmates will criticize.

201671010143 2016-2017-3 "Java program-oriented" weekly knot

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.