Section 3: Scenario-Based
Answer in your own words.
21. Explain when to use a struct instead of a class.
struct instead of a class.22. Why is readonly useful in Unity scripts?
readonly useful in Unity scripts?23. How does static affect methods?
static affect methods?24. Why are events useful in Unity?
events useful in Unity?25. Explain inheritance in Unity.
inheritance in Unity.26. What are abstract classes, and when should you use them?
abstract classes, and when should you use them?27. When should you use a Dictionary instead of a List?
Dictionary instead of a List?28. Explain polymorphism and its benefits.
polymorphism and its benefits.29. What is dependency injection, and why is it useful?
dependency injection, and why is it useful?30. What is a singleton pattern, and when should you use it?
singleton pattern, and when should you use it?Last updated