Class Article


  • public class Article
    extends Object
    Class representing articles with name and price.
    Author:
    Herbert Praehofer
    • Field Detail

      • name

        public final String name
        The name of the article
      • price

        public final double price
        The price of the article
    • Constructor Detail

      • Article

        public Article​(String name,
                       double price)
        Constructor initializing name and price.
        Parameters:
        name - the name of the article
        price - the price of the article