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 are the main types of concurrency design patterns?
What are the most popular design patterns?
What is the singleton design pattern?
What is the concurrency design pattern?
Is singleton scope thread safe?
Write the code for a singleton class?
What is lexi design pattern?
What is the creational design pattern?
Why do we need singleton pattern?
What are the most commonly used design patterns?
2. Create your own definition of a system. Based on the “system” definitions a. Identify your viewpoint of shortcomings in the definitions. b. Provide rationale as to why you believe that your definition overcomes those shortcomings. c. From an historical perspective, identify three precedented systems that were replaced by unprecedented systems.
What are the disadvantages of singleton pattern?
what are the creational design patterns
Is bean a singleton?
Is oop a design pattern?