Output
Laptop
35000
220

Error message:

Methods with the same name as their class will not be constructors in a future version of PHP; ElectornicsItem has a deprecated constructor
Line: 29