Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is inheritance in Java?
Think about code reuse.
What is an interface?
Focus on the concept of contracts.
What is inheritance in Java?
Think about how classes are structured to share code.
True or False: Interfaces allow a class to inherit from multiple parents.
Consider the flexibility of interfaces compared to regular classes.
Design a mini-application in Java that utilizes both inheritance and interfaces. Explain your class hierarchy and interface implementations.
Consider using animals as classes and behaviors as interfaces.
Explain how you would implement polymorphism via method overriding in a different scenario with real-world objects.
Think about different types of vehicles and how they drive differently.
5 more questions in this section. Enroll free to practise them all.
Enroll free