Question: c++ Question) Select the correct implementation of setN method below, so that the main program can be executed correctly. The program should modify t only.
c++

Question) Select the correct implementation of setN method below, so that the main program can be executed correctly. The program should modify t only. sclass Test{ int main() { private: Test t(5); int N; taset (3).setN(9); Publis: taprint(); Test(int. M=0) {N = M;} } void ecint({ cout N = N; return this; this->N = N; return. *this; } this->N = N; return N; this->N = N; returo Test(N)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
