The correct answer is BCG
B - The variable "amount" in Class CheckingAccount is public, which allows the change from the instance to the main method
C - method setAmount () when called from the instance in the main method allows to modify the variable "amount" in the instance of CheckingAccount
G - The changeAmount () method receives in input the same value present in the CheckingAccount instance but in negative. Being public, the variable does not generate an error.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
baledevit
Highly Voted 2 years, 3 months agoMPignaProTech
Most Recent 2 months, 1 week agofvelazqueznava
1 year, 3 months agoDarGrin
1 year, 3 months agoDarGrin
1 year, 3 months agosomrita90
1 year, 4 months agodsms
1 year, 5 months agotuyetan
1 year, 7 months agodastkoz
1 year, 8 months agospongecodes
1 year, 10 months agoAnkit1010
1 year, 11 months agoRAADEL3IMLAK
2 years agoanmoldev2java
2 years, 1 month agocarloswork
2 years, 2 months agocarloswork
2 years, 2 months agowk8b
2 years, 3 months agoPhilip0908
2 years, 4 months agoshivkumarx
2 years, 3 months ago