Joshua Thijssen 11/7/2021

Let's talk about your privates

Read Original

This article presents a debate on using 'protected' versus 'private' visibility for class properties in PHP. The author, part of the minority favoring 'protected by default,' explains the differences, critiques the common 'private by default' approach for limiting user flexibility, and argues that protected access allows for more adaptable library design and unforeseen use cases.

Let's talk about your privates

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser