Question: #include #include using namespace std; string type = Credit; class credit _ card { public: credit _ card ( ) = default; explicit credit _
#include
#include
using namespace std;
string type "Credit";
class creditcard
public:
creditcard default;
explicit creditcardconst double& balance, string com "Disney" :
commovecom balancebalance
void displayinfo const
cout creditcard::type thiscom: thisbalance endl;
void setcomconst string& com
thiscom com;
private:
static string type;
string comNA;
double balance;
;
string creditcard::type type;
creditcard& updatecreditcardconst double& balance
creditcard cc balance ;
static creditcard cc new creditcard;
ccsetcomTesla;
cc cc;
return cc;
int main
creditcard cc updatecreditcard;
ccdisplayinfo;
creditcard cc creditcard cc;
ccsetcomZoom;
ccdisplayinfo;
creditcard cc new creditcard updatecreditcard;
ccdisplayinfo;
ccsetcomGoogle;
ccdisplayinfo;
return ;
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
