Question: In the following code snippet, which constructor is called for the object declaration CashRegister reg ( 5 ) ? class CashRegister { public: CashRegister (
In the following code snippet, which constructor is called for the object declaration CashRegister reg
class CashRegister
public:
CashRegister;
CashRegisterint count;
void setitemcountint count;
void view const;
private:
int itemcount;
;
CashRegister::CashRegister setitemcount;
CashRegister::CashRegisterint count
setitemcountcount;
int main
CashRegister reg;
return ;
Question options:
CashRegister
CashRegisterint count
setitemcountint count
CashRegisterdouble count
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
