I have something like :
interface IProduct { }
class Product implements IProduct { }
class SpecificProduct extends Product { }
I need to have a interface, that extends IProduct, for my SpecificProduct.
Can I just do something like :
interface ISpecificProduct { }
class SpecificProduct extends Product implements ISpecificProduct { }
or will it overwrite the IProduct interface ?
This works in PHP, this way, just go through:
class SpecificProductas itextends Productitimplements IProductalready. As itimplements ISpecificProductas well, it has both interfaces.SpecificProductnow has two interfaces then:IProductISpecificProduct