📄 positivemoney.java
字号:
package com.ora.rmibook.chapter13.bank.valueobjects;
public class PositiveMoney extends Money {
public PositiveMoney(Integer cents) throws Exception {
this (cents.intValue());
}
public PositiveMoney(int cents) throws Exception {
super (cents);
if (_cents <= 0) {
throw new Exception("Bad Value for Money");
}
return;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -