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 abstraction in Java?
Think about what a user needs to interact with.
Can you instantiate an abstract class?
Consider how we use blueprints.
What does abstraction help with in programming?
Think about the user interface.
True or False: An abstract class can be instantiated.
Recall how blueprints work.
Design an abstract base class for a Shape with methods calculateArea() and draw(). Then create subclasses Circle and Square that implement these methods.
Think about how each shape's area is calculated.
Implement an interface Playable that has a method play(). Create classes VideoGame and Music that implement this interface and provide their own version of play().
Consider what 'play' means in different contexts.
5 more questions in this section. Enroll free to practise them all.
Enroll free