given the following class definition, how could you use the constructor to assign values to an object of this class?

class CDAccount
{
public:
CDAccount();
CDAccount(float interest, float newBalance);
float getBalance();
float getRate();
void setRate(float interest);
void setBalance(float newBalance);
private:
float balance, rate;
};

and the following object declaration
CDAccount myAccount;
a. myAccount = CDAccount(float myRate, float myBalance);
b. myAccount = CDAccount {myRate, myBalance};
c. myAccount = CDAccount[myRate, myBalance];
d. myAccount = CDAccount(myRate, myBalance);


d. myAccount = CDAccount(myRate, myBalance);








Computer Science & Information Technology

You might also like to view...

Animations can be previewed by clicking the ________ button or Slide Show button

Fill in the blank(s) with correct word

Computer Science & Information Technology

Each item of information in a data source, such as title or last name, is referred to as a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

In addition to the indicator in the upper left corner of the cell, you can use the ________ command to locate an error in a formula

A) Locate Error B) Find Error C) Trace Error D) Fix Error

Computer Science & Information Technology

Describe the three rules for subnetting a network ID.

What will be an ideal response?

Computer Science & Information Technology