Which code does not contain errors?
Explanation
In this case:
typedef int Type;
template <class Type>
class Class {
    ...
    public:
    Type val;
}
the declared template parameter names hide the names in the global space.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes