Feedback for subjective question
Question 1: See the following code segment.
template
class myclass {
private:
T x;
public:
myclass (T a) {
x = a;
}
};
Write the main function which creates two objects of class for int and double data types.
template
class myclass {
private:
T x;
public:
myclass (T a) {
x = a;
}
};
Write the main function which creates two objects of class for int and double data types.
Current Answer:
Be the first to post an answer to earn 100CR.