If you have a new derived class, will C++ automatically initialize the class members to “zero” values? Explain.

What will be an ideal response?


No, C++ does not initialize class members to “zero” value. C++ only initializes static, local variables to zero if they aren’t initializes. The initialization of class members is handled by the programmer.

Computer Science & Information Technology

You might also like to view...

If myVec has type vector what type does myVec.front() return?

What will be an ideal response?

Computer Science & Information Technology

Identify the two methods for measuring the transmission speed of a modem.

What will be an ideal response?

Computer Science & Information Technology

Most music for portable media players is stored in _______ audio file formats.

A. uncompressed B. compressed C. lossless D. zipped

Computer Science & Information Technology

A physical inventory count is an example of a

A. preventive control B. detective control C. corrective control D. Feed-forward control

Computer Science & Information Technology