A
Allerdyce.John
I have a function in a class:
void A::aFunction (B& b) {
// do something
....
}
void A::anotherFunction() {
// need a reference of B again.
}
my question is how can I create an attriubte of A which can hold B
after A::aFunction() is called?
I can't create a reference of B as an attribute of A (since aFunciton
is not called during constructor of A).
Thanks for any idea.
void A::aFunction (B& b) {
// do something
....
}
void A::anotherFunction() {
// need a reference of B again.
}
my question is how can I create an attriubte of A which can hold B
after A::aFunction() is called?
I can't create a reference of B as an attribute of A (since aFunciton
is not called during constructor of A).
Thanks for any idea.