What is design pattern? Explain all including singleton pattern?



What is design pattern? Explain all including singleton pattern?..

Answer / Vipul Bhushan Mishra

Design patterns are reusable solutions to common software design problems. They provide a set of best practices and guidelines for organizing code that can be applied across various programming languages and applications.nn1) Singleton Pattern: This pattern ensures that a class has only one instance, and provides a global point of access to it. It's useful when you need a single object to coordinate actions across the system or when you want to limit the instantiation of an expensive-to-create object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Why super () is used in java?

1 Answers  


How long does a session last in php?

1 Answers  


Tell me what type of operation is needed when passing values through a form or an url?

1 Answers  


What is isset in php form?

1 Answers  


What is php session and how it works?

1 Answers  


How do I know my xampp version?

1 Answers  


What are PHP Magic Methods/Functions. List them.

1 Answers  


What does mysqli_query return?

1 Answers  


How to get tabels from database in php andd display it in the table form using codelgniter? plz help me

2 Answers  


How do you identify independent and dependent variables in research?

1 Answers  


what the new feature add in php 7.2?

1 Answers  


Why are sessions used?

1 Answers  


Categories