Please note: I know that Aggregation is a specific type of Association. But, is this aggregation or not?
class A{
void myfunc(){
B myB = new B();
}
}
class B{
// some code for class B, which as nothing to do with class A
}
So, when object of B is created and destroyed within the scope of a function of class A, what is the relationship between the 2 classes?