E
EN
Hi.
I've small problem :
I've two objects, each from another class:
example object a from class A and b from B.
I method from class A :
a.setValue() I made object b:
B *b = new B();
What is happen when in main program I invoke delete to object a,
object b is destroy to???
example:
int main(){
A *a = new A();
a->setValue(4);
delete a;
}
Thanks in advice
EN
I've small problem :
I've two objects, each from another class:
example object a from class A and b from B.
I method from class A :
a.setValue() I made object b:
B *b = new B();
What is happen when in main program I invoke delete to object a,
object b is destroy to???
example:
int main(){
A *a = new A();
a->setValue(4);
delete a;
}
Thanks in advice
EN