Thompson Rivers University
Inheritance Exam Practice
Final Exam Prep - SM 2025Here are practice questions to test yourself on Inheritance & Polymorphism. Answer these in a .txt document and post your answers in the community.
Short Answer
Explain overriding versus overloading and give a one-line example for each.
What is the purpose of calling
super()in a subclass constructor?Why might you keep parent fields private but still allow subclass logic?
Can a class inherit from more than one class in Java?
Can a class implement more than one interface?
What happens if you do not write a
super(...)call in your subclass constructor?What access modifiers allow a subclass to see a parent field and which ones do not?
How does Java decide which version of an overridden method to run at runtime?
What does the
finalkeyword mean when applied to a class, and a method?Why can’t you create an object directly from an abstract class? Give an example.
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.