in Education by

When Prototype pattern is to be used?

1 Answer

0 votes
by

When Prototype pattern is to be used?

This pattern is used when creation of object directly is costly. For example, an object is to be created after a costly database operation. We can cache the object, returns its clone on next request and update the database as and when needed thus reducing database calls.

Related questions

0 votes
    What is Prototype pattern?...
asked Nov 7, 2020 in Education by Editorial Staff
0 votes
    When numerous pages of wireframes are made as clickable, these wireframes can be converted as a prototype. This is termed as ... . (1)low-fidelity (2)mid-fidelity (3)high-fidelity...
asked Aug 11, 2021 in Technology by JackTerrance
0 votes
    Will you get a response when you click a prototype? (1)Yes (2)No...
asked Aug 11, 2021 in Technology by JackTerrance
0 votes
0 votes
    I am using the following function to load a PlayList of Songs from 'PlayListJSON.aspx' but somethings seems ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    A linkage of series of prototype objects is called as ________ (a) prototype stack (b) prototype chain ( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    How many properties does a prototype object have? (a) 6 (b) 7 (c) 8 (d) 9 This question ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Design fidelity is the level of functionality and details incorporated into a prototype. (1)False (2)True...
asked Aug 11, 2021 in Technology by JackTerrance
0 votes
    What is the explanation for prototype function in C?...
asked Nov 8, 2020 in Technology by JackTerrance
0 votes
    Here's a question to expose my lack of experience: I have a method DoSomething() which throws an ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 16, 2022 in Education by JackTerrance
0 votes
    A memory byte location contains the pattern 00101100. What does this pattern represent when interpreted as a binary ... ASCII code? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Feedforward network are used for pattern storage? (a) yes (b) no I had been asked this question in a ... Neural Networks of Neural Networks Please answer the above question....
asked Sep 5, 2022 in Education by JackTerrance
0 votes
    Feedback networks are used for autoassociation & pattern storage? (a) yes (b) no The question was posed to ... Neural Networks of Neural Networks Please answer the above question....
asked Sep 3, 2022 in Education by JackTerrance
0 votes
    Feedforward networks are also used for autoassociation & pattern storage? (a) yes (b) no This question was ... Neural Networks of Neural Networks Please answer the above question....
asked Sep 3, 2022 in Education by JackTerrance
...