ex:
@Injectable()
export class AzurePartnerCenterStrategy
extends BasePartnerCenterCartStrategy
implements PartnerCenterStrategy
{
constructor(protected readonly partnerCenterApiService: PartnerCenterApiService) {
super(partnerCenterApiService);
}
}
and the BasePartnerCenterCartStrategy
export abstract class BasePartnerCenterCartStrategy {
constructor(protected readonly partnerCenterApiService: PartnerCenterApiService) {}
As you can see in the AzurePartnerCenterStrategy i need the constructor eventhough the PartnerCenterApiService is already instantiated in the BasePartnerCenterCartStrategy which is extended by the AzurePartnerCenterStrategy!
Why do i need that constructor, it seems redundant? (if i skip it it give me error - undefined)