In Java, what is the relationship between the "children" of classes and the java language?

Source: Internet
Author: User

In Java, what is the relationship between the "children" of classes and the java language?

I learned a book about Java. I have a preliminary understanding of some object-oriented content.

Java is composed of classes that constitute java programs. Class has his children. The four children are:

 

Member variables: they are equivalent to variables one by one. They are modified by static and changed to class variables. The opposite is the instance variable.

Constructor: If the constructor is not specified, the constructor is a constructor without parameters by default, and its return value is the object of the class.

Method: The method is equivalent to a function, but it is different from the function.

Initialization block: It can initialize java objects.

 

I learned object-oriented content. java has many modifiers. There are many meanings and a lot of permissions are given. But this is precisely understandable, because it is object-oriented. The fundamental meaning of object-oriented is to let programs think like people. Or, we can use the human data structure to compare the program. This is much simpler.

Abstraction is the only way to learn programs.

 

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.