Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
Define a class for a Book and create an instance of it.
Classes provide a template for objects.
What is an example of an object?
Think of instances created from a class.
What do we call an instance of a class?
Think about what we create from class blueprints.
True or False: Inheritance enables code reuse.
Consider how children inherit traits from parents.
Implement a class hierarchy for vehicles, using inheritance, encapsulation, and polymorphism.
Think about the common behavior shared among different types of vehicles.
Create an example demonstrating encapsulation with data validation.
Consider how we can protect account details while still allowing changes.
4 more questions in this section. Enroll free to practise them all.
Enroll free