This is the second task I've come across asking for this, and reference creation hasn't been properly explained or taught yet.
How do I create a reference to the object for this?
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Eric Raymond
6 December 2019, 21:32
ObjectName variableName = new ObjectName(); This is case sensitive so be sure to have the proper case for your object you are creating a new reference for. Hope this helps.
0
Shawn
6 December 2019, 19:14
if that worked it wouldn't keep giving me an error. that or they didn't program this task correctly.
0
Guadalupe Gagnon
6 December 2019, 19:05
It tells you how in the conditions:
VariableType variableName = new TypeOfObjectBeingCreated();
....
Woman whatEverYouWantTheVariableNameToBe = new Woman();
0