Podcast
Questions and Answers
What is the Adapter Pattern used for?
What is the Adapter Pattern used for?
Why might we need to use the Adapter Pattern?
Why might we need to use the Adapter Pattern?
Which type of behavior do shapes (points, lines, squares) in the Shapes Library have in common?
Which type of behavior do shapes (points, lines, squares) in the Shapes Library have in common?
What principle does the Solution (Design to interface principle) in the example follow?
What principle does the Solution (Design to interface principle) in the example follow?
Signup and view all the answers
Why should we create an abstract base class for shapes according to the text?
Why should we create an abstract base class for shapes according to the text?
Signup and view all the answers
What is one reason why we cannot change the interface of an existing class?
What is one reason why we cannot change the interface of an existing class?
Signup and view all the answers