Which would be the correct way to instantiate a containerClass object in your main program?
template
class containerClass
{
public:
containerClass();
containerClass(int newMaxSize);
containerClass(const containerClass& source);
~containerClass();
T getItem();
int getCount();
int getSize();
void addItem(T item);
private:
T *container;
int maxSize, count;
};
a. containerClass myContainer;
b. containerClass
c. containerClass
d. containerClass myContainer
c. containerClass
Computer Science & Information Technology
You might also like to view...
Pointing to a circular sizing handle displays a horizontal resize pointer
Indicate whether the statement is true or false
Computer Science & Information Technology
ICMP message type ____ indicates that a faster route has been located.
A. 0 B. 3 C. 5 D. 6
Computer Science & Information Technology