Multiple Choice
given the following class definition, how could you use the constructor to assign values to an object of this class?
Class CDAccount
{
Public:
CDAccount) ;
CDAccountfloat interest, float newBalance) ;
Float getBalance) ;
Float getRate) ;
Void setRatefloat interest) ;
Void setBalancefloat newBalance) ;
Private:
Float balance, rate;
};
And the following object declaration
CDAccount myAccount;
A) myAccount = CDAccountfloat myRate, float myBalance) ;
B) myAccount = CDAccount {myRate, myBalance};
C) myAccount = CDAccount[myRate, myBalance];
D) myAccount = CDAccountmyRate, myBalance) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q5: A member function that allows the user
Q6: C++11 allows you to directly set the
Q7: A structure definition ends with the closing
Q8: In a struct, all members are _
Q9: You specify an individual member of a
Q11: Which part of the ADT tells the
Q12: Given the following strucure definition, what is
Q13: What can a constructor return? _
Q14: Given the following class, what would be
Q15: Member functions of a class<br>A) may not