After inheriting, because Java does not support multiple inheritance, a class can inherit only one superclass. For
To overcome the shortcomings of inheritance, this week we further learned the interface, a class can implement one or more
Interface. But an interface is not a class but a set of requirements descriptions for a class, consisting of constants and a set of abstract methods
We learn from the basic concepts of interfaces and how they are defined, but some concepts of Java
And the definition of the abstract is difficult to understand, if the combination of instances is slightly easier, but for themselves to write the whole process
It is difficult to order again. Can read a program, and then to master the program, and then can write their own class
, there is a big difference between the programs. Now the progress of learning is only able to read the entire program
It is not yet fully applied.
The learning callback is a common programming pattern in which a specific
Actions that should be taken when an event occurs. And then we did the corresponding callback experiment, which is the goal
The most interesting of the previous experiments, there will be a human-computer interaction window, there will be a bell hint.
Summary of differences between shallow and deep copies in the experimental content:
< Span style= "font-family: italics" > shallow copy means when copying an object, The variable for the base data type will be re-copied, < Span style= "font-family: italics" > and for the citation
A variable of type is simply a copy of the reference, and no copy is made to the object to which the reference refers. and deep copy
Is< Span style= "font-family: italics" > < Span style= "font-family: italics" > < Span style= "font-family: italics" > in When you copy an object, the object that the reference points to is also copied. The difference is whether it's right
< Span style= "font-family: italics" > < Span style= "font-family: italics" >
201671010138 2016-2017-2 "Java Programming" learning experience