Question: Explain the concept of late static binding and how it differs from static binding.Answer: Late static binding allows accessing the called class using the 'static' keyword, while static binding refers to the class in which the method is defined. Late static binding is resolved at runtime.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Object-Oriented Programming (OOP)?
- Explain the four pillars of OOP.
- How does inheritance work in PHP?