Use of Static properties / methods and abstract classes. -
April 23, 2012
PHP: The latest news in the...
Just to clarify I'm a huge newb. I'm trying to understand some documentation and I'm finding that declaring static properties prevents them from being accessed through instantiation. Similarly abstract classes cannot be instantiated. Why is it that someone would want to make a class abstract then? I can obviously see why someone would want the option to instantiate a class... but cannot think of a reason you would want to explicitly prevent it. Similarly.. I can't think of the appropriate situations to use static properties/methods. submitted by phaggocytosis [link] [comment]