Access the "color" property of the "hair" object using dot syntax. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Access the "color" property of the "hair" object using dot syntax.

ans

9th Oct 2019, 6:26 PM
Saurabh Yadav
Saurabh Yadav - avatar
2 Réponses
+ 1
More than likely it's hair.color If it's encapsulated, it might be hair.getColor() Hard to provide exact syntax when you don't specify the language. https://www.sololearn.com/discuss/1316935/?ref=app
9th Oct 2019, 7:10 PM
Zeke Williams
Zeke Williams - avatar
0
Which language do you use ?
9th Oct 2019, 6:54 PM
sneeze
sneeze - avatar