20,182,322 2019-2020-1 "Object-oriented programming and data structures," the fourth week of learning summary

Learning content summary

1. Preparation of classes and methods (methods of construction and use configuration)

2. The actual parameters and formal parameters, public and private, return to the void of meaning and difference,

3.UML form class diagram meanings

4. static class (the Math class) static variables, static methods

The relationship between class (dependency, an aggregation relationship inheritance)

6. The use of the interface, the interface can be realized in a class method (Comparable, Iterator)

7. software development activities, design methods, method overloading, test (black box testing, white box)

Textbook learning and problem-solving process

  • Question 1: toString difference and return the return value?
  • Problems Solution 1: toString method returns a string, return a return value (variable)
  • Problem 2: For forms and actual parameters as well as the class instance data there are also confused with the concept of variable between objects.
  • Problem 2 Solution: the formal parameter is the parameter method declaration; actual parameter is the method defined parameters; instance data personal understanding of an actual data is what you call a class of their own in the form of parameters given; class is the prototype of the same class of objects , or that the object is a specific instance of a class, and for the object, which itself has a series of actions and behavior.
  • Question 3: interface issues
  • Question 3 Solution: For the interface, is a collection of constants and abstract methods of a group, the method does not implement the interface, the method declaration back of the head followed by a semicolon only parameter list. Interface can not be instantiated, application interface, greatly improving the flexibility of the method steps, achieved through an interface implements.
  • Question 4: What is written like something composed of various parts play what role?
  • Problems Solution 4: the preparation of a substantially play a key role in the class includes two elements: methods and constructors. They can make this class becomes active, may be utilized in the program.

Code debugging and problem solving in the process

  • Question 1:

  • Question 1: Solution: fewer letters enter the code, re-examine and modify
  • Question 2:

  • Problem 2 Solution: Character error, because the code is too small lead character input caused the error
  • Question 3: will not use the IDE to upload code cloud
  • Question 3 Solution: Re-watch tutorials and resources assistant hair, or will not ask others

Code hosting

Last week exam wrong question summary

  • To define a class that will represent a car, which of the following definitions is most appropriate resolution:? Class should be defined as a public class, so that other classes can access them. And follow the Java naming convention, the class name should begin with a capital letter, and in addition to the start of each new word, lowercase letters should be used, and therefore more suitable than the car or Car CAR.

  • A variable whose scope is restricted to the method where it was declared is known as a (n) Analysis: those local variables are "local" variables declared in method thereof, which can only be accessed within the process. Global variables are variables that can be accessed from anywhere, and the parameter is passed into the method variables. Examples of data can be viewed as a global variable of the entire object.

  • An example of passing message to a String where the message has a String parameter would occur in which of the following messages parsing:? Length and toUpperCase message has no parameters, substring has two int parameters. For equals, the string must be passed as a parameter, so that you can receive the message string is compared with the character string passed as a parameter.

  • ? What happens if you declare a class constructor to have a void return type analysis: even declare any type of violation void constructor syntax

  • Formal parameters are those that appear in the method call and actual parameters are those that appear in the method header analysis: formal parameter is present in the method header parameter, the actual argument is a method invocation parameters (parameters passed to the method) .

  • Java methods can return more than one item if they are modified with the reserved word continue, as in public continue int foo () {...} Analysis: All Java methods return an item, whether it is the original data type of the object or void. Reserved words continue for the remainder of the test conditions and exit the loop again.

  • A constructor may contain a return statement so long as no value (or expression) is returned Analytical: Constructor may not comprise a return statement return value. But this is legitimate.

Pair peer review and

Grading

  1. Proper use Markdown syntax (1 point):
    • Do not use Markdown no extra points
    • A syntax error is not a plus (link does not work, does not form, the list is incorrect ...)
    • Typesetting confusion is not a plus
  2. Elements range (1 point) template
    • Missing "textbook learning and problem solving process" without points
    • Lack of "problem solving and debugging code in the process" without points
    • Managed code can not be opened without points
    • Missing "twinning and peer assessment" can not be opened without points
    • Missing "last week summed up the wrong title examination" can not be a plus
    • The lack of "progress bar" can not be a plus
    • Lack of "reference" can not be a plus
  3. Textbook learning and problem solving process, a problem 1 point

  4. Code debugging and problem solving in the process, a problem 1 point

  5. Week over 300 branches valid code (plus 2 points)
    • Submitted one week fewer than 20 times without points
  6. Other plus points:
    • Hair blog before Friday 1 point
    • Feelings, experience does not leave large empty 1 point
    • Typesetting fine plus one point
    • Progress bar records the learning time and improve the situation of 1 point
    • There are hands-on writing new code, add 1 point
    • After class choice has verified 1 point
    • Code Commit Message Specification 1 point
    • Learning the wrong questions in depth, add 1 point
    • Comments seriously, I can point out problems and blog code plus 1 point
    • Pair learning authentic plus 1 point
  7. Points:
    • Plagiarism buckle to 0
    • Cheat codes to buckle 0
    • Late assignments to buckle 0

Comments template:

  • Worth learning problems or blog:
    • Neat layout
    • In-depth study of issues
  • Code is worth learning or problem:

    • The code has its own understanding
    • The code arrangement is not beautiful
  • Based on score, I give this blog Rate: 9 points. Scores are as follows:
  • Proper use Markdown syntax +1.
  • Textbook learning and problem solving process +2. The problem code debugging and resolution process +2.
  • Feelings, experience does not leave large empty +1.
  • +1-depth learning the wrong questions.
  • Comments seriously. There are after-school title verification +1.
  • The progress recorded +1.

Comments had students blog and code

  • Pair this week learning

  • Last week blog peer assessment case

Other (perception, thinking, etc., optional)

  • This chapter learning content too much, there are a lot of places do not understand, you need to take the time to more in-depth study
  • The content of this chapter is more important, so the need to pay more knock code more practice

Learning progress bar

The number of lines of code (add / accumulate) Blog amount (add / accumulate) Learning time (add / accumulate) Important growth
aims 10,000 lines 30 400 hours
the first week 59/200 2/2 20/20
The third week 292/331 2/4 20/40
the fourth week 677/ 969 2/4 20/60
  • Plan study time: 20 hours

  • The actual study time: 20 hours

  • Improvements:

Reference material

Guess you like

Origin www.cnblogs.com/wmh20182322/p/11613988.html