Creme a ciass called Cath that consists of two values, a double bohusce and a double ieferest hote. Make the class 50 that both values can be retuleved and changed outside of the class. Pequire that. when an instance of Cach is created, both the bolence and interest nate must be specitied. Using what you know of dwa provise what you believe to be the hest implementation of such a clask.
Add an additional meshod ta your Cash type of Cuestion 1. The rreehod should be update that takes no input and increases the balance of the Cash by the product of the interest note and the balance. Write the method as it would appear inside the Cash type and use the proper odjectoxiented zoding stye
Creme a ciass called Cath that consists of two values, a double bohusce and a double ieferest hote. Make the class 50 th
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Creme a ciass called Cath that consists of two values, a double bohusce and a double ieferest hote. Make the class 50 th
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!