Warning: Constant ABSPATH already defined, this will be an error in PHP 9 in /home/killerph/public_html/wp-config.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/killerph/public_html/wp-config.php:19) in /home/killerph/public_html/wp-includes/feed-rss2-comments.php on line 8
Comments on: A Question about object properties in PHP Classes. https://www.killerphp.com/articles/object-properties/ Thu, 09 Dec 2021 20:55:12 +0000 hourly 1 https://wordpress.org/?v=6.4.13 By: PHPDeveloper.org https://www.killerphp.com/articles/object-properties/#comment-404 Fri, 07 Dec 2007 14:29:03 +0000 http://www.killerphp.com/articles/object-properties/#comment-404 Stefan Mischook’s Blog: A Question about object properties in PHP Classes…

Stefan Mischook shares a little question and answer he had recently ……

]]>
By: Stefan Mischook https://www.killerphp.com/articles/object-properties/#comment-403 Fri, 07 Dec 2007 06:47:11 +0000 http://www.killerphp.com/articles/object-properties/#comment-403 Hi,

Jon is correct and I actually prefer using interfaces to set standards in the code base over abstract or concrete classes … more flexible.

If any of you are not sure what interfaces are:

http://www.killerphp.com/articles/php-interfaces/

CIAO,

Stefan

]]>
By: Jon Lebensold https://www.killerphp.com/articles/object-properties/#comment-402 Fri, 07 Dec 2007 03:36:47 +0000 http://www.killerphp.com/articles/object-properties/#comment-402 Designing applications with interfaces also helps. Essentially, you specify the implementation of the class in a separate file that is implemented in your concrete class. Interfaces work really well in C# / Java due to the strong-typed nature of the language, however that doesn’t mean that PHP developers should be sloppy. If anything, we should be more rigorous in our development practices.

]]>