avatar
n*h
1
比如car rental system,
class customer里面应该有
send_rental_request()
相应的,
carRentalSystem里面应该有,
respond_request()
这两个function之间应该怎么联系起来?
avatar
e*e
2
Endoplasmic reticulum: Where nucleotide sugar transport meets cytokinin
control mechanisms
Plant Signaling & Behavior Volume 10, Issue 10, 2015
DOI:10.1080/15592324.2015.1072668
http://www.tandfonline.com/doi/abs/10.1080/15592324.2015.107266
Pls send to [email protected]
/* */
thank you very much
avatar
q*x
3
system provides a public method for users to call. why need 2?

【在 n*****h 的大作中提到】
: 比如car rental system,
: class customer里面应该有
: send_rental_request()
: 相应的,
: carRentalSystem里面应该有,
: respond_request()
: 这两个function之间应该怎么联系起来?

avatar
e*e
4
在线等。
感恩节愉快
avatar
n*h
5
So you are saying in each customer object it calls the CarRentalSystem? (
Most probably by newing it?)

【在 q****x 的大作中提到】
: system provides a public method for users to call. why need 2?
avatar
q*x
7
class CarRental {
public:
bool getNewCar();
};
it's still CarRental's job to allocate resource.

【在 n*****h 的大作中提到】
: So you are saying in each customer object it calls the CarRentalSystem? (
: Most probably by newing it?)

avatar
e*e
8
thank you so much
avatar
n*h
9
I see the point now.

【在 q****x 的大作中提到】
: class CarRental {
: public:
: bool getNewCar();
: };
: it's still CarRental's job to allocate resource.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。