Apple.java 580B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Write a description of class Apple here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class Apple extends Product
  8. {
  9. private double price;
  10. private String id;
  11. private int quantity;
  12. /**
  13. * Constructor for objects of class Apple
  14. */
  15. public Apple(double price, String id, int quantity)
  16. {
  17. super(price, id, quantity);
  18. }
  19. /**
  20. * An example of a method - replace this comment with your own
  21. *
  22. * @param y a sample parameter for a method
  23. * @return the sum of x and y
  24. */
  25. }