Skip to content

Commit a34caa9

Browse files
committed
added an idx tag
1 parent d15068b commit a34caa9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/ch6_definingclasses.ptx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public void setDenominator(Integer denominator) {
196196
<title>Writing a constructor</title>
197197

198198
<p>
199+
<idx>constructor</idx>
199200
Once you have identified the instance variables for your class the next thing to consider is the constructor.
200201
In Java, <term>constructors</term> have the same name as the class and are declared public.
201202
They are declared without a return type.

0 commit comments

Comments
 (0)