answersLogoWhite

0


Best Answer

A document or file having a preset format, used as a starting point for a particular application so that the format does not have to be recreated each time it is used: a loan amortization template for a spreadsheet program.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

It depends on the type of template you are referring to. Generally, if a template is provided that meets your needs, then you save a great deal of time by not having to start from scratch. The template should provide the basic framework you need, and should permit some measure of modification to tailor it to your exact requirements.

To look at a more specific computer programming example, a template function or class allows you to provide a single, generic implementation that can cater for any data type that supports that implementation. For instance, all linked lists operate exactly the same way regardless of the type of data stored in the list. So rather than implement separate lists for every type of data you might wish to place in a list (which is a maintenance nightmare should you wish to modify the implementations), or derive lists from an abstract list class (which is problematic at best), you simply provide one template class and construct specific lists with specific data types as and when required. Since the implementation is entirely self-contained and all in one place, with little to no code duplication, code maintenance is greatly simplified and type-safety is assured. And if you need a more specific type of list (such as a priority queue or a stack), then you can derive from the generic list template to create other generic templates that implement the more specific features you require. Of course lists, queues and stacks are usually provided for you in your chosen language anyway, so you rarely need to implement your own templates, but it's a classic example of why templates are useful in computer programming.

This answer is:
User Avatar

User Avatar

Wiki User

16y ago

Template is used to implement the concept of generic programming. Templates allow us to generate a family of classes or a family of functions to handle different data types

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

If there is more than one shape needed, you use the tamplate to re-use again to make the same shape.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages and disadvantages of using template classes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are advantages and disadvantages of using a heligimbal?

what are the advantages and disadvantages of using a heligimbal


What is multimedia explain three advantages and three disadvantages of using multimedia applications?

various classes of multimedia system


Advantages and disadvantages of using technology in refrigeration?

what are the advantages and disadvantages of refrigeration


What are advantages and disadvantages of using vouchers?

what are the advantages and disadvantages of voucher in business


What are the advantages and the disadvantages of using quilting?

what is the advantages and disadvantages of quilted fabric


What are the advantages and disadvantages to using a ring mouse?

advantages and disadvantages of ring mouse


Advantages Disadvantages of using a shaper machine?

what are advantages and disadvantages of shapper machine


What is the advantages and disadvantages of usinf sales figures?

There are great advantages and disadvantages to using sales figures. Advantages to using sales figures is to help with projections of sale for future years. The disadvantages of using sales figures is the market is volatile.


What are the advantages of using a electronic diary?

What are all the advantages and disadvantages of using an electronic dairy?


What are the disadvantages of using a template?

Some disadvantages of using a template include lack of originality, limitations on customization, potential for others to have similar designs, and difficulty in making extensive changes to the layout or structure.


Advantages kg disadvantages of using inorganic refrigerants?

There are several advantages and disadvantages of using 1 KG inorganic refrigerants. Some of the advantages and disadvantages are cost, energy efficiency, safety issues, and system issues.


What are the advantages and disadvantages of using scientific models?

disadvantages *not to scale *there are limitations