Solved

Given the Following Code, Identify the Pattern

Question 40

Multiple Choice

Given the following code, identify the pattern. Class MyBuilder
{ static MyBuilder builder = null;
{ if builder == null {builder = new MyBuilder( ) ;
Return builder;
}


A) Factory Pattern
B) ​Singleton Pattern
C) Factory Method Pattern
D) ​Adapter Pattern

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions