- 1
How to accomplish?
Drag and drop from the options below to declare a template class "MyClass", with two constructors. One of the constructors takes parameter of template type and prints its value to the screen. template <class T> class MyClass { public: MyClass() { } (T arg) { cout << ; } };
9 Answers
+ 1
template
Myclass
arg
this is the answer
+ 1
answer is template, <T>, and cout.
0
Drag and drop from the options below to declare a template class "MyClass", with two constructors. One of the constructors takes parameter of template type and prints its value to the screen.
<class T>
class MyClass {
public:
MyClass() {
}
(T arg) {
cout << ;
}
};
template class arg MyClass T
0
template <class T>
class MyClass {
public:
MyClass() {
}
MyClass (T arg) {
cout << arg ;
}
};
0
Drag and drop from the options below to define the ''MyClass'' member function ''myFunc()'', where ''MyClass'' is a template class and ''myFunc'' prints "I love C++" to the screen.
template
<T>
cout
0
Drag and drop from the options below to declare a template class "MyClass", with two constructors. One of the constructors takes parameter of template type and prints its value to the screen.
template
Myclass
arg
0
template <class>
t
arg
0
Drag and drop from the options below to declare a template class ''MyClass'' with two template data members: memOne and memTwo. Initialize them in the constructor.
Answer:
Template
Myclass
T
memtwo
- 1
template
Myclass
T
memTwo
THATS THE ANSWER



