Static Polymorphism

What is Static Polymorphism? Give its syntax and simple example.

Questions by saima_khan

Showing Answers 1 - 15 of 15 Answers

I hope you know the concept of polymorphism.
Compile time polymorphism is called static polymorphism.
 Ex. overloading and overriding member functions. But they should not be virtual functions.

 

 

  Was this answer useful?  Yes

divi

  • Dec 13th, 2013
 

I hope you know the concept of polymorphism.
Compile time polymorphism is called static polymorphism.
Ex. overloading and overriding member functions. But they should not be virtual functions.

  Was this answer useful?  Yes

rohitsuri

  • Sep 11th, 2014
 

when function call is resolve at compile time then it is called static polymorphism

Youssef Arbach

  • Dec 12th, 2014
 

Static polymorphism could be seen also with Templates, since the selection of the write function is done at compile time. Usually with inheritance (and call-by ref sure) polymorphism is dynamic, unless it is a call by-value, then there would be no morphism at all.

  Was this answer useful?  Yes

rdl

  • Dec 28th, 2014
 

The call to a function is resolved at compile time. Eg., function overloading and templates.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions