Structural Design Patterns in Modern C++ - Basic Example - Proxy Design Pattern

Structural Design Patterns in Modern C++ - Basic Example - Proxy Design Pattern

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

The video tutorial explains the Proxy design pattern, starting with the creation of a subject base class and a real subject class. It then details the implementation of a proxy class that inherits from the subject, ensuring it has the same interface as the real subject. The proxy class manages the real subject's instantiation and provides additional behavior. The tutorial demonstrates how client code interacts with the proxy, highlighting that the client remains unaware of the proxy's presence. The video concludes with a promise of more examples in future lectures.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

How does the proxy provide additional behavior compared to the real subject?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What will happen if the real subject instance is not created before the request is invoked?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the role of the client in the proxy design pattern?

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?