Programming Languages
PHP
Objective
Sep 23, 2025
Which PHP 8.3 feature allows you to create read-only classes?
Detailed Explanation
Explanation: PHP 8.1 introduced readonly properties, and PHP 8.2 introduced readonly classes. A readonly class is a class where all properties are implicitly readonly. This ensures immutability and prevents modification after initialization.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts