Interfaces and properties

No. Interfaces are implemented as function tables (basically a simple virtual method table) and the compiler needs to know there’s a function to map the property onto. You can declare a property on an interface, but it has to have functions as getter/setter values, not fields. You can make it read-only or write-only, though.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)