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.
Define what an interface is.
Remember, it’s about enforcing certain behaviors.
Can an abstract class contain concrete methods?
Think about shared behavior between classes.
What can an abstract class contain?
Think of concrete methods as those that have their implementation!
Is it possible for a class to implement multiple interfaces?
Think of different roles a class might play.
Design a simple Java application using both an interface and an abstract class. Explain your design decisions.
Consider what common traits animals share.
Explain a scenario where using an interface is more beneficial than using an abstract class, including an example.
Think about flexibility and what interface allows.
5 more questions in this section. Enroll free to practise them all.
Enroll free