Skip to content

Commit a8a1306

Browse files
authored
Fixing typo in constructor name
Constructor name must match class name
1 parent dd2fe34 commit a8a1306

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

data/part-4/1-introduction-to-object-oriented-programming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ Create a class `Product` that represents a store product. The product should hav
702702

703703
The class should have:
704704

705-
- the constructor `public Item (String initialName, double initialPrice, int initialQuantity)`
705+
- the constructor `public Product (String initialName, double initialPrice, int initialQuantity)`
706706
- a method `public void printProduct()` that prints product information in the following format:
707707

708708
<sample-output>

0 commit comments

Comments
 (0)