SJSU/Udacity CS046

Lesson 9 - Interfaces and Inheritance

  1. Quiz: Unifying Common Behavior
  2. Defining an Interface Type
  3. Implementing an Interface Type
  4. Quiz: Converting from Class to Interface
  5. Quiz: House Equals New Dog
  6. Quiz: Drawable Equals New Drawable
  7. Quiz: Drawable Equals New Rectangle
  8. Quiz: Polymorphism
  9. Quiz: A Second Interface
  10. Quiz: Instanceof Test and Cast
  11. Quiz: What If We Forget to Check the Type?
  12. When Casting Goes Wrong
  13. Quiz: Using Interfaces for Algorithm Reuse Average Area
  14. Quiz: Average Mileage
  15. Quiz: Average Anything
  16. Quiz: Largest Anything
  17. Quiz: Casting the Largest Back to a Country
  18. Compare To
  19. Quiz: Strings Are Comparable
  20. Quiz: Implementing Comparable
  21. Quiz: Inheritance
  22. Quiz: The Quiz Hierarchy
  23. Quiz: A Subclass
  24. Quiz: Implementing Subclass Methods
  25. Quiz: Setting the Answer
  26. Quiz: The Display Method
  27. Quiz: Can We Mix Question Types?
  28. Mixing Question Types
  29. Quiz: Which Display Method Is Called?
  30. Quiz: The Right Display Method Is Called
  31. Quiz: Numeric Question
  32. Summary

Quiz: Unifying Common Behavior

Problem on this page?

Your name:

Your email address:

Problem description:

To protect against spam robots, please answer this simple math problem:
× =