template<class T, class X> class Obj {
T my_t;
X my_x;
public:
Obj(T t, X x) : my_t(t), my_x(x) { }
};
Referring to the sample code above, which one of the
following is a valid conversion operator for the type T?
a) T operator T () { return my_t; }
b) T operator(T) const { return my_t; }
c) operator(T) { return my_t; }
d) T operator T (const Obj &obj) { return obj.my_t; }
e) operator T () const { return my_t; }
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
Why do we use classes in programming?
sir i want to study the c++ course but ino what is the qualification and the study methode please reply more details in c++
Can a function take variable length arguments, if yes, how?
what does the following statement mean? int (*a)[4]
You run a shell on unix system. How would you tell which shell are you running?
What are the benefits of operator overloading?
What is c++ and its uses?
How to create a reference variable in C++
What is the difference between prefix and postfix versions of operator++()?
What is an object in c++?
Is it possible for a member function to delete the pointer, named this?