201671010110 2016-2017-2 "Java Programming"

Source: Internet
Author: User

Four weeks of Java learning has passed, this semester the new programming language teachers to flip the new teaching methods are a new challenge and learning process. Four weeks also learned the contents of four chapters, the first three chapters and C language has a lot of similarities, after the previous semester on the C learning comprehension of the first three chapters is not difficult, the fourth chapter of the class and object is a very important chapter of course also has a certain degree of difficulty, the teacher in the Thursday Friday classroom also on the first four chapters of the content I've talked a lot of exercises. Weekend to the fifth chapter of the content through the slide has a certain learning understanding.

Inheriting it is a mechanism for building new classes with existing classes. When a new class is defined to inherit a class, it inherits the methods and fields of the class, and new methods and fields are added to the new class to accommodate the new situation. It is a core technology in Java programming and one of the object-oriented features. It has two characteristics that have hierarchies and subclasses that inherit the domain and methods of the parent class. Four advantages: The reusability of the ① code ② can easily customize the domain and methods of the subclass ③ parent class to be used for subclasses. ④ makes designing applications easier.

For an existing class called a superclass, a base class, or a parent class. The new class is called a subclass, a derived class, or a child class. In general, sub-analogy super-class has more features to enrich. Super It is a unique keyword. The method used to call the superclass and the constructor that calls the superclass. Multiple inheritance is not supported in Java. Dynamic binding refers to running a binding. The 45th chapter of the content also need to strengthen learning. Don't give up easily!

201671010110 2016-2017-2 "Java Programming"

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.