203k views
2 votes
Consider the following statement: ptrMemberVarType objectThree(objectOne); The values of the member variables of objectOne are being copied into the corresponding member variables of objectThree. This initialization is called the ____.

a. member-wise assignment
b. default initialization
c. member-wise initialization
d. default assignment

User Kasia
by
5.4k points

1 Answer

4 votes

Answer: C) Member-wise initialization

Step-by-step explanation:

The member wise initialization is the shortest technique for initialize the various properties of the member into new structure. The initial value of the given properties are basically pass by the name to the member wise initialization.

The given statement is the type of value in which the member variable of the object one are copy into the member variable of the object three.

Therefore, this initialization process is basically known as member wise initialization.

User Hugh Guiney
by
5.6k points