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.