Vidyalelo
Computer Science · Q343

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 343

Q343

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

A.
Each object will store a separate copy of any static member data
B.
Each object will store a separate copy of any member functions
C.
Each object will store a separate copy of any nonstatic data members
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