Skip to content

Commit 06860e0

Browse files
committed
added a reference to 2.1.2 in paragraph text
1 parent 4f44f97 commit 06860e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/ch2_firstjavaprogram.ptx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
self.name = name
8888
self.breed = breed
8989
self.fur_color = fur_color
90-
self.trained = False
90+
self.trained = False # dogs are not trained by default
9191
print("Dog named " + self.name + " created!")
9292

9393
def bark(self):
@@ -111,7 +111,7 @@
111111
</program>
112112
</listing>
113113
<p>
114-
In the final line of code, we have created an object called <c>my_dog</c>. We have initialized its attributes, setting <c>name</c> to Rex, <c>breed</c> to pug, and <c>fur_color</c> to brown.
114+
In the final line of code in <xref ref="python-class-create-object" text="type-global"/>, we have created an object called <c>my_dog</c>. We have initialized its attributes, setting <c>name</c> to Rex, <c>breed</c> to pug, and <c>fur_color</c> to brown.
115115
</p>
116116

117117
<p>
@@ -128,7 +128,7 @@
128128
self.name = name
129129
self.breed = breed
130130
self.fur_color = fur_color
131-
self.trained = False
131+
self.trained = False # dogs are not trained by default
132132
print("Dog named " + self.name + " created!")
133133

134134
def bark(self):

0 commit comments

Comments
 (0)