1.2 Using Objects

Skills

  1. Describe the behavior of a given segment of program code.
  2. Determine code that would be used to interact with completed program code.
  3. Write program code to create objects of a class and call methods.
  4. Determine the result or output based on the statement execution order in a code segment containing method calls.
  5. Apply the meaning of specific operators.

Essential Questions

  1. How can we simulate election results using existing program code?
  2. How are appropriate variables chosen to represent a remote control?
  3. How do the games we play simulate randomness?

1.2 Challenge - Requirements

    • Explain the relationship between a class and an object.
    • Identify, using its signature, the correct constructor being called.
    • Create objects by calling constructors without parameters.
    • Create objects by calling constructors with parameters.
    • Define variables of the correct types to represent reference data.
    • Call non-static void methods without parameters.
    • Call non-static void methods with parameters.
    • Call non-static non-void methods with or without parameters.
    • Create String objects.
    • Call String methods.
    • Create Integer objects.
    • Call Integer methods.
    • Create Double objects.
    • Call Double methods.
    • Call static methods.
    • Evaluate expressions that use the Math class methods.