The idea of Java programming in reading notes

Source: Internet
Author: User

At this stage I am reading the Java programming idea this book, this book just read the first chapter of the part, some have to remember so recorded, I think to remember that there is a re-use this can be used to enhance the object, a class as the basic type of the next class, so that the purpose of the use of the class to enhance the role. Inheritance is one of the most critical aspects of object-oriented programming. Polymorphic use, the original is not very understanding, the original is simple to think that is overloaded, here side talked about with the multi-state interchangeable objects, when calling the method when the parameters passed in is a base class, but when called this method will be different subclasses passed this method, this method will automatically know which code to call to execute, This is called late binding, and when a subclass is passed into a function, this function will implement an "upward transformation" of the class to think of a base class, but the implementation method will pay attention to some details, so that the subclass is implemented, which is his magic, this is only a personal understanding later this book will be described in detail, But until the eighth chapter, then the detailed understanding.

The idea of Java programming in reading notes

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.