RequestFacade(const AuthSubSystem *s1 = nullptr, const ValidatorSubSystem *s2 = nullptr
, const LoggerSubSystem *s3 = nullptr
, const BackendSubSystem *s4 = nullptr)Â
{
this->auth_ = s1 ?: new AuthSubSystem;Â
this->validator_ = s2 ?: new ValidatorSubSystem;
this->logger_ = s3 ?: new LoggerSubSystem;
this->backend_ = s4 ?: new BackendSubSystem;Â
}
method1:
this->auth_->method();
this->validator_->method();
this->logger_->method();
this->backend_->method();
method2:
this->auth_->method();