Creative Clicks Interview Question

Object Inheritance in php which the developer asking did not even understand

Interview Answer

Anonymous

Apr 28, 2023

Explained to them it is to do with extend keyword in php and they said it was incorrect. Because you are extending a class and inheriting its properties but they insisted it is to do with implements and interfaces, in my experience implementing a interface is adhering to a domain contract, i.e methods the class needs to adhere to.