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 myContainer;
c. containerClass myContainer;
d. containerClass myContainer


c. containerClass myContainer;

Computer Science & Information Technology

You might also like to view...

Classes and methods reveal low-level implementation details.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What PowerShell cmdlet will allow you to Select items to remain in a table after filtering out unwanted items?

A. Filter-Data B. Where-Object C. Where-Data D. Hold-Object

Computer Science & Information Technology

As soon as the tournament website goes live (Task 1 ) you can start accepting online registrations (Task 2 ) is an example of the ________ task dependency type in Project 2013

A) Finish-to-Start B) Finish-to-Finish C) Start-to-Start D) Start-to-Finish

Computer Science & Information Technology

Following the ________ model can provide the necessary guidance to creating an effective dashboard

A) white space B) SDLC C) BI D) KPI

Computer Science & Information Technology