+ 1
I need help
Drag and drop from the options below to declare ''Ninja'' and ''Monster'' objects, and then two ''Enemy'' pointers that point to the ''Ninja'' object and the ''Monster'' object, respectively. ninjaObj; monsterObj; Enemy* e1 = ; e2 = &monsterObj;
5 odpowiedzi
+ 4
Question: Drag and drop from the options below to declare ''Ninja'' and ''Monster'' objects, and then two ''Enemy'' pointers that point to the ''Ninja'' object and the ''Monster'' object, respectively.
Answer:
Ninja ninjaObj;
Monster monsterObj;
Enemy* e1 = &ninjaObj ;
Enemy* e2 = &monsterObj;
0
Thank you
0
thanks all for your suports
0
Ninja
ninjaObj;
Drag and drop from the options below to declare ''Ninja'' and ''Monster'' objects, and then two ''Enemy'' pointers that point to the ''Ninja'' object and the ''Monster'' object, respectively.
Answer:
Monster
monsterObj;
Enemy* e1 = &ninjaObj;
Enemy*e2 = &monsterObj;