I am trying to better understand basic concepts in OOP. What are static and dynamic variables and methods in object-oriented programming? What is, for instance, the difference between using $this vs. double colon (::)?
$this ($this->a_method())
- Advantages: ?.
- Disadvantages: ? ... "this" is not self-documenting as in:
$this->method_from_an_extended_class()
.
Double colon (someclass::a_method())
- Advantages: ?
- Disadvantages: ?