YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← Mixing Question Types - Intro to Java Programming

Get Embed Code
6 Languages

Showing Revision 4 created 05/25/2016 by Udacity Robot.

  1. Here is the first question, I just copied it from a previous program. Here's

  2. the second question. Notice the first one is a, plain old question, the second
  3. one is a choice question. I'm passing both of them to the presentQuestion
  4. method. That's just one of those methods, it's down here, and its parameter has
  5. type Question. So it's okay to pass a choice question into a question
  6. parameter. You can always convert from the subclass to the super class.