why to use template classes in c++?

Answer Posted / swati

the template classes are use for the reuse of the data
types which you want to use the program for many times

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is class defined?

588


What is new keyword in oops?

593


2. Give the different notations for the class.\

1594


How to hide the base class functionality in Inheritance?

640


What is the main feature of oop?

622






What is multilevel inheritance?

727


write string class as your own class in java without using any built-in function

1978


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

633


What do you mean by abstraction?

619


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6487


Advantage and disadvantage of routing in telecom sector

790


What is polymorphism oop?

623


What is the difference between abstraction and polymorphism?

619


Write a program to reverse a string using recursive function?

1794


What is protected in oop?

604