answersLogoWhite

0


Best Answer

Template class: A generic definition or a parametrized class not

instantiated until the client provides the needed information. It?s

jargon for plain templates.

Class template: A class template specifies

how individual classes can be constructed much like the way a class

specifies how individual objects can be constructed. It?s jargon for

plain classes.

Class template is a template used to generate template classes. We cannot declare an object of a class template.

Template class is an instance of a class template.

User Avatar

Wiki User

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

Wiki User

14y ago

C++ Function templates are those functions which can handle different data types without separate code for each of them. For a similar operation on several kinds of data types, a programmer need not write different versions by overloading a function. It is enough if we writes a C++ template based function template

T Add(T a, T b) //C++ function template sample

{

return a+b;

} now t can be int, foat or any other data type.so using functionn template we can work with many datatypes in one function. we can call the function by using int x=Add(2,4) Class Template a class templateprovides a specification for generating classes based on parameters.For example, the C++ standard library has a list container called list, which is a template. The statement list designates or instantiates a linked-list of type int. The statement list designates or instantiates a linked-list of type string. kailash kandpal http://www.vsicskanpu.org

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Template class:
A generic definition or a parameterized class not instantiated until the client provides the needed information. It's jargon for plain templates.
Class template:
A class template specifies how individual classes can be constructed much like the way a class specifies how individual objects can be constructed. It's jargon for plain classes.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Distinguish between class template and template class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Distinguish between the Classes and Objects?

A Class is a template from which Objects are created, in much the same way as a plan of a building is a template from which a building is created... just as the building plan is a piece of paper and not a building, so a Class is not an Object. The code for a Class describes the way in which an Object should behave when particular methods are invoked.


In java difference between classes and object in tabluar form?

A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.


A stack class template in C?

I didnt get exactly what do you mean by stack class template, but this is one which implements a stack! and also shows how to implement it with templates http://thetechnofreaks.com/2011/10/26/4-creating-a-stack/#ixzz1bvq2V1Ws


What is meant by instancing a class?

The class can be considered a template to create objects. When you create an object, you create it on the basis of the specified class - the object is an instance of the class, and the act of creating the object is also known as "instantiating" the class.


What is the differnce between ordinary function and template function of c language?

The c language does not have template functions. That is a c++ thing.

Related questions

Distinguish between the Classes and Objects?

A Class is a template from which Objects are created, in much the same way as a plan of a building is a template from which a building is created... just as the building plan is a piece of paper and not a building, so a Class is not an Object. The code for a Class describes the way in which an Object should behave when particular methods are invoked.


What is class and objects?

class is template of object and object is instance of a class


What is the distinguish between?

how can you distinguish between them


Distinguish between accounting and book keeping?

distinguish between book keeping and accounting


Distinguish class and family (groups between kingdoms)?

a class is a category showing an entire species in general, and a family is a category showing a specific group of organisms and their family tree


In java difference between classes and object in tabluar form?

A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.A class is a template to create objects. You define the general behavior of a new data type in a class; then you create objects as specific variables of the new type. In other words, you can consider the class as a data type.


Define and distinguish between entries on the books and entries on the workpapers and explain why such an entries on the books and on the workpapers are required in the consolidation process?

what is distinguish between bookkeeping and accounting? what is distinguish between bookkeeping and accounting? what is distinguish between bookkeeping and accounting?


Distinguish between object and classes?

classes are user defined data types and behaves like built in types of programming language.when we define a class,we declare its exact form and nature,we do this by specifying the data it contains and the code that operates on data,most real world classes contain both.a class code defines the interface to its data. once you define a class it becomes a template for an object.by using this template we can create any number of objects.so object is an instance of a class.objects are the basic runtime entities in an object oriented system,they may represent a person,a place, a bank account,a table of data that the program may handle.


What is Distinguish Between Accounting Convention And Aoncept?

Distinguish Between Accounting Convention And Aoncept


Where can you find a sentence using the word distinguish?

The question mark will distinguish a question from a sentence. How will you distinguish yourself in class today? People who are "color blind" cannot distinguish the color red from green.


Four of the five choices listed below are different forms of a class of nucleic acids. Select the exception template ribosomal mRNA messenger transfer?

template


A stack class template in C?

I didnt get exactly what do you mean by stack class template, but this is one which implements a stack! and also shows how to implement it with templates http://thetechnofreaks.com/2011/10/26/4-creating-a-stack/#ixzz1bvq2V1Ws