Home > Back-end >  Why choose c don't choose d, please
Why choose c don't choose d, please

Time:09-17

CodePudding user response:

Because fun3 is by value, the value in the process of temporary building an object B, so fun3 calls inside the temporary object B show function

CodePudding user response:

reference 1/f, Simple, Soft reply:
because fun3 is by value, the value of the process will be temporary building an object B, so fun3 inside is temporary object B show function called

Why build a temporary object b ah because function definition parameter is b

CodePudding user response:

refer to the second floor m0_46609566 response:
Quote: reference 1/f, Simple, Soft reply:
because fun3 is by value, the value of the process will be temporary building an object B, so fun3 inside is temporary object B show function called

Why build a temporary object b ah because when parameter function definition is b

Is B type of build objects, not B

CodePudding user response:

Polymorphism is only for reference, pointer.
  • Related