If I declare an array of 2000 Student objects (assume Student is a class I’ve written), is a class’ constructor function called before or after I start using the Student array elements? Explain. Which (if any) class constructor is called.
What will be an ideal response?
When I declare 2000 Student objects (such as in an array) the Student default constructor will execute for each of the 2000 objects. This will occur before I can use my Student array.
Computer Science & Information Technology
You might also like to view...
A recursive algorithm usually contains a(n) ____ instruction that causes the algorithm to keep calling itself until the base condition is met.
A. For B. Stop C. IF/ELSE D. Start
Computer Science & Information Technology
You can usually obtain parameter information for an embedded object from the object's ____.
A. software manufacturer B. Web programmer C. element D.
Computer Science & Information Technology