201671010111 2016-2017-2 "Java programming" on Java Inheritance learning difficulties

Source: Internet
Author: User

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

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.