You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
343 B
Java
18 lines
343 B
Java
3 years ago
|
package com.company.OnlineShop;
|
||
|
|
||
|
import java.net.http.WebSocket;
|
||
|
|
||
|
public class Article {
|
||
|
private int articleNumber;
|
||
|
private double price;
|
||
|
|
||
|
public Article(int articleNumber, double price){
|
||
|
this.articleNumber = articleNumber;
|
||
|
this.price= price;
|
||
|
}
|
||
|
|
||
|
public double getPrice(){
|
||
|
return this.price;
|
||
|
}
|
||
|
}
|