logo

Crowdly

Browser

Add to Chrome

class OldPrinter { void printText ( String s ) { ... } } interface ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

class OldPrinter {

void printText(String s) { ... }

}

interface NewPrinter {

void print(String msg);

}

class PrinterAdapter implements NewPrinter {

private OldPrinter oldPrinter;

public void print(String msg) {

oldPrinter.printText(msg);

}

}

Which pattern is used?

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on lms.astanait.edu.kz?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome