C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
7
Reply
Different Types of Polymorphism
Pavan Ramamurthy
12y
2.2k
2
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
OverLoading
OverRiding
Pavan Ramamurthy
12y
2
Static polymorphism example:function overloading,function overriding,constructor overloading. Dynamic polymorphism example : virtual function
Neha Kumari
8y
1
Polymorphism is mainly 2 type : 1) Run Time 2) Compile Time
Ashish Srivastava
9y
1
Polymorphism is mainly 2 type : 1) Run Time polymorphism: a) Virtual function2) Compile Time Polymorphism : a) function overloadingb) operator overloadingCompile time polymorphism is used for Function overloadingRuntime is used for implementing virtual functions,overriding etc
Rahul Prajapat
10y
1
http://www.catonmat.net/blog/cpp-polymorphism/
Munesh Sharma
10y
1
http://www.aspdotnet-suresh.com/2013/09/polymorphism-in-c-with-example-types-of-polymorphism.html
Munesh Sharma
10y
1
Polymorphis -------------------- Polymorphism means ability to take more than one form. Polymorphism is mainly divided into : 1) Run Time polymorphism: a) Virtual function 2) Compile Time Polymorphism : a) function overloading b) operator overloading Compile time polymorphism is used for Function overloading Runtime is used for implementing virtual functions,overriding etc Overloading: is an example of compile time polymorphism.(Because the function to call is decide at compile time) example: Math math=Math(); math.add(10,20) math.add(10,20,30) Overriding: an example of compile time polymorphism.(Because the function to call is decide at runtime) example: superclassObject.add(10,10) subclassObject.add(10,10) Here in the case of Overriding the method which will call is decide will decide at the runtime.
ponveni
12y
1
Message