Vidyalelo
Computer Science · Q81

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 81

Q81

If you declare two objects as Customer firstCust, secondCust; which of the following must be true?

A.
Each object's nonstatic data members will be stored in the same memory location
B.
Each object will be stored in the same memory location
C.
Each object will have a unique memory address
Answer
D.
You cannot declare two objects of the same class

Answer: Option C

Solution

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