in my opinion.zerg1 is the name of the Zerg object.whats the point in having the code.zerg1.name???? or may b i dnt understand it welll.. clear my doubt.Thanks.
anupam jha
Level 7
one doubt...
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Misiu
2 December 2020, 14:01
zerg1 is a reference (something like address) to Zerg object.
Object Zerg has some data - name.
We call that data in the way: objectReference.data
zerg1.name;
+3