CJCoding With Joseph
15free / daySign inCreate account

Thompson Rivers University

Inheritance Exam Practice

Final Exam Prep - SM 2025

Here are practice questions to test yourself on Inheritance & Polymorphism. Answer these in a .txt document and post your answers in the community.

Multiple Choice Quiz

Short Answer

  1. Explain overriding versus overloading and give a one-line example for each.

  2. What is the purpose of calling super() in a subclass constructor?

  3. Why might you keep parent fields private but still allow subclass logic?

  4. Can a class inherit from more than one class in Java?

  5. Can a class implement more than one interface?

  6. What happens if you do not write a super(...) call in your subclass constructor?

  7. What access modifiers allow a subclass to see a parent field and which ones do not?

  8. How does Java decide which version of an overridden method to run at runtime?

  9. What does the final keyword mean when applied to a class, and a method?

  10. Why can’t you create an object directly from an abstract class? Give an example.

Members only

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 54 more lessons in Thompson Rivers University.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel any time.