Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 7 (Q.No. 21)
21.
When you define an object that is a member of a class, such as Student Abby; _____
a block of memory is set aside and all data members are assigned valid values
a block of memory is set aside
no memory is set aside until values are defined
no memory is set aside, but valid values are assigned to data members
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Coder said:   9 years ago
I think the option should be [A]. Because as soon as you write Student Abby; the constructors are called and the initialization begins. That would require memory.

Post your comments here:

Your comments will be displayed after verification.