subject

Define the missing member function. use "this" to distinguish the local member from the parameter name.

#include
using namespace std;

class cableplan{
public:
void setnumdays(int numdays);
int getnumdays() const;
private:
int numdays;
};

// fixme: define setnumdays() member function, using "this" implicit parameter.
void cableplan: : setnumdays(int numdays) {

/* your solution goes here */

return;
}

int cableplan: : getnumdays() const {
return numdays;
}

int main() {
cableplan house1plan;

house1plan. setnumdays(30);
cout < < house1plan. getnumdays() < < endl;

return 0;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:40
Access defaults to searching for information on the
Answers: 1
question
Computers and Technology, 22.06.2019 14:40
You are working with a professional edition organization. they wish to install the expense tracker which requires the use of 4 custom tabs, 3 custom objects, and one custom app. if the company is already using 4 applications, 36 custom objects, and 7 custom tabs, what will happen when they try to install expense tracker?
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
In the rgb model, which color is formed by combining the constituent colors? a) black b) brown c) yellow d) white e) blue
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
The heart of a computer.basic input/output systemselectmain memoryserial portcentral processing unit (cpu)
Answers: 3
You know the right answer?
Define the missing member function. use "this" to distinguish the local member from the parameter na...
Questions
question
English, 04.03.2021 01:10
question
English, 04.03.2021 01:10
question
Mathematics, 04.03.2021 01:10
question
Mathematics, 04.03.2021 01:10
Questions on the website: 13722363