C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 36)
36.
Which of the following is a mechanism of static polymorphism?
Operator overloading
Function overloading
Templates
All of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
17 comments Page 1 of 2.

Aiman said:   4 years ago
Templates are a compile-time construct and type deduction is a process when the compiler automatically figures out the template arguments. This is where static polymorphism comes in.

Lahari said:   6 years ago
To avoid the overloading we use templates.

Yash jaiswal said:   7 years ago
What is meant by template?

Sushil Nirmale said:   7 years ago
I think Template comes under dynamic binding.
(1)

Nikhil said:   8 years ago
I mean templates allso comes in static binding so all of the above.

Mounika said:   9 years ago
If we define a function as a template function, it can work with different data types and if a class is made as a template, its members can be of any data type. Data types of members are given at the time of creating the object.

Shreyas Deshpande said:   9 years ago
What is static polymorphism?

Mohammed said:   9 years ago
What is dynamic polymorphism?

Bharat said:   10 years ago
What are templates?

Radhika said:   1 decade ago
Explain it in brief?


Post your comments here:

Your comments will be displayed after verification.