Is there any types of polymorphism …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Biku Biswa 7 years, 1 month ago
- 1 answers
Related Questions
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Suhail Hussain 7 years, 1 month ago
Yes there are 2 types of polymorphism.
1. Function overloading.: Here functions have same name but they differ in number of aurguments passed or type of argument. E.g sum( int x, int y) and sum(float x, float y). Here number of aurgumets are same but there type is different. Sum(int a) sum (int a, int b) here type is same but number of aurguments are different.
2. Operator overloading: in this one operator is made to do different things like + does sum of 2 numbers but we can overload it and can make it concatinate 2 strings
0Thank You