This repository has been archived by the owner on Jun 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package refactor. Extra work on Session 4 Homework - IN PROGRESS
- Loading branch information
Showing
11 changed files
with
93 additions
and
56 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...vaBasicsLab/MainClassForFirstSession.java → ...b/S01_02_03/MainClassForFirstSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package JavaBasicsLab; | ||
package JavaBasicsLab.S01_02_03; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Random; | ||
|
2 changes: 1 addition & 1 deletion
2
src/JavaBasicsLab/CabinetVeterinar.java → src/JavaBasicsLab/S04/CabinetVeterinar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/JavaBasicsLab/Caine.java → src/JavaBasicsLab/S04/Caine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package JavaBasicsLab; | ||
package JavaBasicsLab.S04; | ||
|
||
public class Caine { | ||
private String rasa; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package JavaBasicsLab.S04.Homework; | ||
|
||
public class CashRegister { | ||
private String name; | ||
private String currency; | ||
private double availableAmount; | ||
|
||
public CashRegister(String name, String currency, double availableAmount) { | ||
this.name = name; | ||
this.currency = currency; | ||
this.availableAmount = availableAmount; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getCurrency() { | ||
return currency; | ||
} | ||
|
||
public void setCurrency(String currency) { | ||
this.currency = currency; | ||
} | ||
|
||
public double getAvailableAmount() { | ||
return availableAmount; | ||
} | ||
|
||
public void sellShopItems() { | ||
//TODO | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...vaBasicsLab/SessionFourHomework/Main.java → src/JavaBasicsLab/S04/Homework/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sicsLab/SessionFourHomework/ShopItem.java → src/JavaBasicsLab/S04/Homework/ShopItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package JavaBasicsLab.S04.Homework; | ||
|
||
public class ShoppingCart extends Inventory { | ||
|
||
public ShoppingCart(String name) { | ||
super(name); | ||
} | ||
|
||
public double returnTotalPrice(){ | ||
//TODO | ||
return 0; | ||
} | ||
|
||
public void buyShoppingCart(){ | ||
//TODO | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
src/JavaBasicsLab/MainClassSession4.java → src/JavaBasicsLab/S04/MainClassSession4.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.