Object Oriented Programming010 marksStatic polymorphism
What are the different ways of achieving static polymorphism?Discuss overloading of pre-increment and post-increment operators with suitable examples.[5+5]
What are the different ways of achieving static polymorphism?Discuss overloading of pre-increment and post-increment operators with suitable examples.[5+5]
(a) Ways of Achieving Static Polymorphism Static Polymorphism (also called compile-time polymorphism) is the mechanism where the decision about which function or operator to call is made at compile time rather than at runtime. It is achieved through the following ways: --- Defining multiple funct...