Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a design pattern?
Think about the definition provided in class.
Name one creational pattern.
Consider patterns that deal with object creation.
What do design patterns promote?
Consider the benefits of designing code better.
True or False: The Adapter pattern changes the interface of an existing class.
Think about how an adapter works in everyday contexts.
You are tasked with designing a logging system for an application. Discuss how you would utilize the Singleton pattern to ensure that all parts of the application share a single log instance.
Think about how to restrict instantiation of a class.
Consider a scenario where user interface components need to be created for different themes (light, dark). Explain how you could apply the Factory Method pattern in this context.
Consider what responsibilities can be delegated to the factory.
4 more questions in this section. Enroll free to practise them all.
Enroll free