Question: Suppose a class Apple.
In the subsequent code how many times is the copy constructor called in the given code?
Apple (const Apple &u)// copy constructor of the class Apple { w=u.w; } ----------------------------------------------------- int main() // main function { Apple x; Apple y(x); Apple z(y); return 0; }
Can you answer these questions in details and provide examples to support your rationale.