adplus-dvertising
frame-decoration

Question

A template class can have _____________

a.

More than one generic data type

b.

Only one generic data type

c.

At most two data types

d.

Only generic type of integers and not characters

Answer: (a).More than one generic data type

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A template class can have _____________

Similar Questions

Discover Related MCQs

Q. Which among the following is the proper syntax for the template class?

Q. Can default arguments be used with the template class?

Q. What is the syntax to use explicit class specialization?

Q. Which is the most significant feature that arises by using template classes?

Q. A template class defines the form of a class _____________________ it will operate.

Q. What are the two specializations of I/O template classes in C++?

Q. Can typeid() function be used with the object of generic classes?

Q. The _____________ class is a specialization of a more general template class.

Q. How is function overloading different from template class?

Q. What if static members are declared inside template classes?

Q. If template class is defined, is it necessary to use different types of data for each call?

Q. How many generic types can be given inside a single template class?

Q. Template classes must have at least one static member.

Q. Which is most appropriate definition of a base class?

Q. A base class is also known as _____________ class.

Q. An abstract class is always a __________ class.

Q. How many base classes can a single class inherit in java?

Q. How to make a derived class a base class?

Q. If a base class is being derived by two other classes, which inheritance will that be called?

Q. Which among the following must be in a base class?