1234567891011121314151617181920212223242526272829303132333435363738 |
-
- import java.util.*;
-
- /**
- * Write a description of class Inventory here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Inventory extends Product
- {
- String id;
- Scanner scan = new Scanner(System.in);
-
- public Inventory (String id) {
- super(id);
- }
-
- public String id (String id) {
- return id;
- }
-
- public double totalValue(int amt, double cost) {
- return quant * price;
- }
-
- public int quant(int amt) {
- return quant;
- }
-
- public double price(double cost) {
- return price;
- }
-
-
-
- }
|