Last week, one of the experimental programming problems is the application of inheritance to achieve the length of the graph and the calculation of the area, there is a program, the identity card number. txt is read into memory, enter a social security number or name, the query displays the name of the query object, identification number, age, gender and place of birth. Then, the class was almost impossible to program, the main reason is because we have not enough knowledge of inheritance.
All this week in the theory class, the teacher will inherit the fifth chapter in the form of teacher lectures, explaining the inheritance of the relevant grammar. In the experimental class, the teacher told the first way of programming, but the use of inheritance is not skilled.
In the fifth chapter, the class and the superclass and subclass in the inheritance are all the knowledge points of the fourth chapter, and the object after that is the superclass of all classes, which is the basic knowledge. To the following list of generic arrays, is the inheritance chain. Object wrappers and auto-boxing are new knowledge points for inheritance. Methods, enumeration classes, and reflections that have variable number of parameters are implemented using inheritance.
Originally 456 chapters is the core knowledge of Java, to inherit this piece we seem to encounter the bottleneck. It is not possible to implement code functionality by using inheritance skillfully in code.
201671010111 2016-2017-2 "Java programming" on Java Inheritance learning difficulties