Search Header Logo
Structural Design Patterns in Modern C++ - Shapes Hierarchy Issues

Structural Design Patterns in Modern C++ - Shapes Hierarchy Issues

Assessment

Interactive Video

Computers

9th - 10th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video discusses the challenges of managing shape abstractions and implementations in software design, particularly when adding new shapes or drawing APIs. It highlights the problem of class proliferation and proposes a solution using the Bridge design pattern. This pattern separates abstraction from implementation, allowing for more flexible and maintainable code, especially in drawing applications.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

How would you implement a new shape, such as a triangle, using the proposed design?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What role does the renderer play in the new design proposed in the text?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the Bridge design pattern as it relates to the drawing application discussed in the text.

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?