Describe the Prototype pattern
Experience Level: Senior
Tags: Design PatternsGang of Four (GoF)
Answer
What problem does the Prototype pattern try to solve
- It instantiates a new object by copying all of the properties of an existing object.
- Used usually when the construction of an object is inefficient.
- Instead of using new keyword, Clone() is called on an existing object
Other information
- It's a creational pattern
- It was defined by Gang of Four (GoF)
Related Design Patterns job interview questions
Describe the Factory method pattern
Design PatternsGang of Four (GoF) SeniorDescribe the Singleton pattern
Design PatternsGang of Four (GoF) Senior
Chat
Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.
Anonymous
Καλησπέρα.
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
the infinteis -3/15 so 1triition / infinet
Anonymous
e
e
Anonymous
<a href="https://inspirum.pl "
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
[url]https://inspirum.pl[/url]
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e
LaceJaguar65
e
e