You have the following template class


You have the following template class definition. 

template 
class mypair {

   private:
    T values [2];
   public:
    mypair (T first, T second) {values[0]=first; values[1]=second;}
};

Which of the following properly creates an object of this class (select all that apply)?

a)mypair myobject (115, 'a');

b)mypair myobject(115, 36);

c)mypair myobject (115, 36);

d)mypair myobject ('a', 'b');

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: You have the following template class
Reference No:- TGS01190621

Expected delivery within 24 Hours