@@ -7,45 +7,45 @@ public interface IMoney {
7
7
/**
8
8
* Adds a money to this money.
9
9
*/
10
- public abstract IMoney add (IMoney m );
10
+ IMoney add (IMoney m );
11
11
12
12
/**
13
13
* Adds a simple Money to this money. This is a helper method for
14
14
* implementing double dispatch
15
15
*/
16
- public abstract IMoney addMoney (Money m );
16
+ IMoney addMoney (Money m );
17
17
18
18
/**
19
19
* Adds a MoneyBag to this money. This is a helper method for
20
20
* implementing double dispatch
21
21
*/
22
- public abstract IMoney addMoneyBag (MoneyBag s );
22
+ IMoney addMoneyBag (MoneyBag s );
23
23
24
24
/**
25
25
* Tests whether this money is zero
26
26
*/
27
- public abstract boolean isZero ();
27
+ boolean isZero ();
28
28
29
29
/**
30
30
* Multiplies a money by the given factor.
31
31
*/
32
- public abstract IMoney multiply (int factor );
32
+ IMoney multiply (int factor );
33
33
34
34
/**
35
35
* Negates this money.
36
36
*/
37
- public abstract IMoney negate ();
37
+ IMoney negate ();
38
38
39
39
/**
40
40
* Subtracts a money from this money.
41
41
*/
42
- public abstract IMoney subtract (IMoney m );
42
+ IMoney subtract (IMoney m );
43
43
44
44
/**
45
45
* Append this to a MoneyBag m.
46
46
* appendTo() needs to be public because it is used
47
47
* polymorphically, but it should not be used by clients
48
48
* because it modifies the argument m.
49
49
*/
50
- public abstract void appendTo (MoneyBag m );
51
- }
50
+ void appendTo (MoneyBag m );
51
+ }
0 commit comments