201521123089 Java Programming 6th Week of study summary

Source: Internet
Author: User
Tags set time

1. This week study summary 1.1 object-oriented learning, use mind map to encapsulation, inheritance, polymorphismDrawing a mind map for the core concept and summarizing the object-oriented thought.

NOTE 1: keywords and content do not ask for much, but the relationship between the concept of clear, content coverage to the core content of the object can be.
NOTE 2: less color, not complicated wiring, when necessary to be on the line to explain.

2. Written work 1.clone method

The Clone method in 1.1 object objects is protected decorated, what do you need to be aware of when overriding the Clone method in your custom class?

1.2 When you design your own class, what kind of method is generally used to modify the protected? Take the job shape as an example to illustrate.

Protect semantics are protected, and fields or methods that are modified by them are accessible only in classes and subclasses within the same package.

1.3 Write the simple employee class in the Test1 package, create a new testprotected class in the Test2 package, and try to invoke the Clone method of the employee in the Test1 package in main to clone a new object, can it be successful?

Q2. Using an anonymous class and a lambda expression to rewrite a set of object-oriented 2-advanced-polymorphic interfaces The topic of the inner class 5-2q3. Analyze the following code to answer Shapecomparator what does the object that points to the comparator interface have to do with it?
New  Comparator<shape>() {       @Override       publicint  Compare (Shape O1, shape O2) {            // Your code            }         };  

Q4. Event handling in the GUI

4.1 Write out the most important keywords in the event-handling model.

4.2 Use code and annotations to prove that you understand the event-handling model.

3. Code Cloud submission Record

3.1. Code Cloud codes Submission record

In the Code cloud Project, select statistics-commits history-set time period, and then search for and
3.2. PTA Experiment

function (Optional: 4-1), Programming (5-3, 5-4)
There must be an experimental summary.

201521123089 Java Programming 6th Week of study summary

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.