Consider the following code: can complex private float, public complexfloat, Doat b) { ma complex00 void displaydata cou
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following code: can complex private float, public complexfloat, Doat b) { ma complex00 void displaydata cou
Consider the following code: can complex private float, public complexfloat, Doat b) { ma complex00 void displaydata coutral part od couto imaginary partende } complex operator (complexe return complexr-c.1, 1); : intant complex (2,3): complex b(3,4): complex cab cdisplaydata, return 0; The implementation is correct The code does not run because the implementation of default constructor is incomplete operator+() must use a const reference parameter operator+() must be implemented as a non-member function O operator+() must be implemented as a friend function
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!