Consider the code below class Fred public Fred int main Fred a-04022
Consider the code below, <br>class Fred { <br>public: <br>Fred();<br> __________ <br>}; <br>int main() <br>{ Fred a[10]; <br>Fred* p = new Fred[10];<br> __________ <br>} <br>Select the best option,
This multiple choice question (MCQ) is related to the book/course vu cs304 Object Oriented Programming. It can also be found in vu cs304 Final Term - Quiz No.5.
Consider the code below,
class Fred {
public:
Fred();
__________
};
int main()
{ Fred a[10];
Fred* p = new Fred[10];
__________
}
Select the best option,
class Fred {
public:
Fred();
__________
};
int main()
{ Fred a[10];
Fred* p = new Fred[10];
__________
}
Select the best option,
Fred a[10]; calls the default constructor 09 timesFred* p = new Fred[10]; calls the default constructor 10 times
Produce an error
Fred a[10]; calls the default constructor 11 times Fred* p = new Fred[10]; calls the default constructor 11 times
Fred a[10]; calls the default constructor 10 times Fred* p = new Fred[10]; calls the default constructor 10 times