Skip to content

Commit

Permalink
Fixing incorrect method names
Browse files Browse the repository at this point in the history
Both in Product Warehouse Project.
-Translated method name that was still in Finnish (and would not compile of course).
-Fixed incorrect method in testing code (Product Warehouse with History Part 2). Testing with corrected code should properly produce the result previously specified below the code.
  • Loading branch information
kostas-s authored Jun 18, 2020
1 parent 5a9ceaa commit 274f8fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/part-9/1-inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,7 @@ System.out.println(mehu); // saldo = 988.7, tilaa 11.3
```java
ProductWarehouse juice = new ProductWarehouse("Juice", 1000.0);
juice.addToWarehouse(1000.0);
juice.otaVarastosta(11.3);
juice.takeFromWarehouse(11.3);
System.out.println(juice.getName()); // Juice
System.out.println(juice); // balance = 988.7, space left 11.3
```
Expand Down Expand Up @@ -1754,7 +1754,7 @@ System.out.println(mehu.historia()); // [1000.0, 988.7, 989.7]
ProductWarehouseWithHistory juice = new ProductWarehouseWithHistory("Juice", 1000.0, 1000.0);
juice.takeFromWarehouse(11.3);
System.out.println(juice.getName()); // Juice
juice.takeFromWarehouse(1.0);
juice.addToWarehouse(1.0);
System.out.println(juice); // Juice: balance = 989.7, space left 10.3

// etc
Expand Down

0 comments on commit 274f8fb

Please sign in to comment.