Skip to content
Snippets Groups Projects
Commit bfcc8821 authored by Veeti Timonen's avatar Veeti Timonen
Browse files

Upload New File

parent 64e98860
No related branches found
No related tags found
No related merge requests found
public class VirtuaalinenTuote extends Tuote {
public VirtuaalinenTuote(String nimi, double hinta) {
super(nimi, -1, hinta);
}
@Override
public int getSaldo() {
// Palauttaa aina luvun 1000, koska tuotetta on
// aina varastossa riittävästi mihin tahansa
// tilaukseen
return 1000;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment