|
PHP: OOP / OOD (28) Necessary Composition
|
PHP: OOP / OOD (28) Necessary Composition
It’s not always bad to make a class require another, but it strongly depends on what your goal is. In this example, I show you a good way to use composition in PHP Object Oriented Design (OOD). Inheritance is not the life-blood of OOP, yes it has it's uses. However, it's better to favor composition over inheritance. I believe this is true because composition is much more flexible. Thanks for watching my PHP OOD Video Tutorial, please subscribe Author: youtube
Video Length: 0
Date Found: January 04, 2011
Date Produced: December 31, 2010
View Count: 0
|
|
|
|
|
I got punched by an old guy, for farting near his wife. Read MoreComic book creator Stan Lee talks the future of the medium in the digital age. Panelists Zachary... Read MoreThe U.S. launch of Spotify is still on music lovers' minds. Join Zachary Levi, from NBC’s... Read MoreTuesday: Rupert Murdoch testifies before Parliament on the hacking scandal that brought down "News... Read MoreAfter a long slump, the home construction industry may be showing signs of life. But as Bill... Read More | 1 2 3 4 5 |
|
|
|