Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. redefine the following CDAccount so that it is a class rather than a structure. Use the same member variables in CDAccount but make them
4. redefine the following CDAccount so that it is a class rather than a structure. Use the same member variables in CDAccount but make them private. Include member functions for each of the following: one to return the initial balance, one to return the balance at maturity, one to return the interest rate, and one to return the term. Include a constructor that sets all of the member variables to any specified values, as well as a default constructor. embed your class definition in a test program. struct CDAccount \{ double balance; double interest_rate; int term; //months until maturity \}; Your answer: A. B
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started