Package at.jku.ssw.fp.sect07_1
Class Article
- java.lang.Object
-
- at.jku.ssw.fp.sect07_1.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 articleprice
- the price of the article
-
-