What are generic functions and generic classes?

Answer Posted / saranya.c

Generic functions are functions which are not used for any
particular datatype..they are useful for anydatatype Ex: if
you write code for the Sorting program using templates then
the function is useful for any data type to sort...Generic
classes are same as generic functions

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when to use 'mutable' keyword and when to use 'const cast' in c++

1639


What is encapsulation in oops?

529


Why do we use oops?

585


What is class and object in oops?

605


Is data hiding and abstraction same?

561






Explain virtual inheritance?

680


What is object in oop with example?

688


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1826


What is a class and object?

589


What is the real time example of encapsulation?

586


What is the main feature of oop?

613


Please send ford technologies placement paper 2 my mail id

1646


What do you mean by abstraction?

603


what type of questions

1688


What is cohesion in oop?

607