Answer Posted / jayashri
by declaring the constructor as private and we have to create public static method which returns the address of single object.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a lazy initialization in singleton?
Which design pattern is mvc?
What is meant by design pattern?
What are the disadvantages of singleton pattern?
Write the code for a singleton class?
What is the use of repository pattern?
When singleton pattern is used?
What is the concurrency design pattern?
Are you using singleton in your code?
Which design patterns have you used in your project ?
What is the prototype design pattern?
What are structural design patterns?
What is difference between function oriented design and object oriented design?
5.Develop an entity relationships diagram that identifies physical entity relationships.
What is the difference between adapter and facade?