English subtitles

← Inheritance - Intro to Java Programming

Get Embed Code
6 Languages

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

  1. Let's look at the car class. It's subclass is SUV. An SUV is a special kind of
  2. a car. At superclass is vehicle. A car is a special kind of vehicle. A vehicle
  3. is more general, a car is more specific. Subclasses of SUV, we don't have any.
  4. Superclass of SUV, car is a superclass. And then going one further up, vehicle,
  5. is also superclass, sometimes people say that car is a direct superclass. Now
  6. we could implement, this vehicle hierarchy in Java, but truth be told, it's a
  7. little dull, and we'll come up with a more interesting hierarchy.