Question
a.
No, not necessary
b.
No, but at least two types must be there
c.
Yes, to make proper use of template
d.
Yes, for code efficiency
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. If template class is defined, is it necessary to use different types of data for each call?
Similar Questions
Discover Related MCQs
Q. How many generic types can be given inside a single template class?
View solution
Q. Template classes must have at least one static member.
View solution
Q. Which is most appropriate definition of a base class?
View solution
Q. A base class is also known as _____________ class.
View solution
Q. An abstract class is always a __________ class.
View solution
Q. How many base classes can a single class inherit in java?
View solution
Q. How to make a derived class a base class?
View solution
Q. If a base class is being derived by two other classes, which inheritance will that be called?
View solution
Q. Which among the following must be in a base class?
View solution
Q. Which type of members can’t be accessed in derived classes of a base class?
View solution
Q. If a class is enclosing more than one class, than it can be called as base class of those classes.
View solution
Q. Base class have ________________ of abstraction.
View solution
Q. Always the base class constructors are called ___________ constructor of derived class.
View solution
Q. Can we call methods of base class using constructor of the derived class?
View solution
Q. If a base class is inherited from another class and then one class derives it, which inheritance is shown?
View solution
Q. How many base classes can a single derived class have in C++?
View solution
Q. If a base class is added with few new members, its subclass must also be modified.
View solution
Q. Which among the following is best definition of a derived class?
View solution
Q. Which among the following is inherited by a derived class from base class?
View solution
Q. If there is a derived class in a program, how many classes must be in that program?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!