Return to Video

Value After Generation

  • 0:00 - 0:05
    Let's review the execution flow of the previous exercise. First, we generated an
  • 0:05 - 0:10
    object of type txt for you implicitly. Then we called the fill method in that
  • 0:10 - 0:15
    object so that the values get assigned for a sender, receiver and message.
  • 0:15 - 0:20
    Finally we printed those values. So we printed the fields in the object of type
  • 0:20 - 0:26
    txt. So far, so good. Now we changing things up. We are no longer going to call
  • 0:26 - 0:31
    the fill method. Instead we are starting out by generating this object again.
  • 0:31 - 0:37
    And then we print the values of the fields directly right after. So the question
  • 0:37 - 0:44
    is, what will happen if you generate an object and immediately print its values?
  • 0:44 - 0:48
    What will happen to the sender field, for example?
タイトル:
Value After Generation
Video Language:
English
Team:
Udacity
プロジェクト:
CS348 - Functional Hardware Verification
Duration:
0:48
Cogi-Admin added a translation

English subtitles

改訂