Vidyalelo
Computer Science · Q257

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 257

Q257

Which of the following creates an animal object named dog?

A.
animal "dog";
B.
animal dog;
Answer
C.
dog "animal";
D.
dog animal;

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board