We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca9993 commit 107b367Copy full SHA for 107b367
src/main/java/org/java10/examples/ProductExample.java
@@ -15,13 +15,15 @@ public float applyInternetPrice() {
15
System.out.println(modifiedProduct.calculateTotal());
16
System.out.println(modifiedProduct.applyDiscount(0.15f));
17
System.out.println(modifiedProduct.applyInternetPrice());
18
+ System.out.println(modifiedProduct.getClass());
19
System.out.println("----------------");
20
21
var commonProduct = new Product("A not internet product", 8f, 0.5f);
22
23
System.out.println("Common product");
24
System.out.println(commonProduct.calculateTotal());
25
System.out.println(commonProduct.applyDiscount(0.15f));
26
+ System.out.println(commonProduct.getClass());
27
System.out.println("--------------");
28
}
29
0 commit comments