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 6 years, 4 months ago
- 1 answers
Related Questions
Posted by Manoj Kumar Manoj Kumar 7 months, 2 weeks ago
- 0 answers
Posted by Kandeepan Jothivel 6 months, 3 weeks ago
- 2 answers
Posted by Hanni Pham 4 months, 2 weeks ago
- 1 answers
Posted by Hanni Pham 4 months, 2 weeks ago
- 0 answers
Posted by Prawar Narang 6 months, 2 weeks ago
- 1 answers
Posted by Syedali Fathima 5 months, 3 weeks ago
- 1 answers
Posted by Priya Shukla 5 months, 3 weeks 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 6 years, 4 months 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