Question: IN VISUAL BASIC PROGRAMMING, Create a class named CreditCard. The credit card number should be passed as an argument to the constructor and stored in

IN VISUAL BASIC PROGRAMMING, Create a class named CreditCard. The credit card number should be passed as an argument to the constructor and stored in a hidden variable having a data type of String. In addition, the initial credit limit should be passed as the second argument to the constructor. The credit limit should also be made available to other classes by way of a read-only property. It should be possible to make payments on the credit card account along with making charges. Making payments and charges should decrease and increase the credit card balance, respectively. The credit card balance should be stored in a hidden variable and made available to other classes via a read-only property. It should be possible to increase or decrease the credit limit via a method. A read-only property should be created to get the available credit. The available credit can be determined by subtracting the current balance from the credit limit. Another read-only property needs to be created to get the available balance.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!