翻译一段英文

请翻译详细点 不要用机器翻译
2025-04-23 09:15:30
推荐回答(1个)
回答1:

Writhe a class representing the bank. The bank creates economic crises and sells them to thetaxpayers.
The class has a field to represent the sum of money it has and a field that represents a price of a crisis.
Write appropriate constructors, accessor and mutator methods.
Write sellcrisis method. What does it do?
Write addInterest method that accepts a percentage and increments the sum of money the bank has by this percentage.
代表银行的一个班。银行创造经济危机并将其卖给纳税人。
这个类有一个字段来表示它所拥有的钱和一个代表危机价格的字段。
编写适当的构造函数、访问器和变元方法。
写股票危机的方法。它是做什么的?
写利息法,接受一个百分比,并增加银行的钱的百分比。