P
Patriote
Some programmers use the style
$objSome = new SomeObject;
instead of
$objSome = SomeObject->new();
What are the penalties for using the former Java-like syntax if any?
I've heard that it can cause problems with inheritance, but I've read
no specifics.
Thanks.
$objSome = new SomeObject;
instead of
$objSome = SomeObject->new();
What are the penalties for using the former Java-like syntax if any?
I've heard that it can cause problems with inheritance, but I've read
no specifics.
Thanks.