Hi :
I have two doubts :
1) Whats is the maximum no of objects we can define of the same class ?
2)If we have created instance of a class in particular method belong to the same
class or its friend class ( as mentioned below), what is the scope of this
object ?? will it get destroyed once we return from the method ??
void method x()
{
car c ;
}
thanks.
I have two doubts :
1) Whats is the maximum no of objects we can define of the same class ?
2)If we have created instance of a class in particular method belong to the same
class or its friend class ( as mentioned below), what is the scope of this
object ?? will it get destroyed once we return from the method ??
void method x()
{
car c ;
}
thanks.
Comment