This just can get confusing as hell, sometimes.
I kinda just shake my head at the “Intro to OOP” tutorials that spend the whole time talking about “polymorphism” and “encapsulation”. It’s no wonder a lot of developers hold out learning OOP.
Anyway, the most important…
Most fundamental…
Object-oriented programming principle is much, much simpler.
And, I think a big “aha” for developers.
Of course, that’s probably just my naive “don’t confused the hell out of people on day 1” opinion, but who knows. Anyway, if you’ve been wanting to tackle OOP in PHP, but been afraid it’s complicated as hell…
Give this video a watch:
I think you’ll see… it’s a lot simpler than you think.
(And, most coding instructors make it out to be.)
If you do, I’d appreciate it if you’d share it with anyone you know who is also looking to learn object-oriented programming.
Later,
John