© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•9mo ago•
2 replies
Faker

✅ Difference between OOP concept, inheritance vs polymorphism

Hello, at first, for me, both inheritance and polymorphism mean the same thing but by doing some further reading, can someone just confirm whether the following is correct please:

From what I've reasd, inheritance is just when we create a class (derived class) that is derived from a base class, "inheriting" methods and fields from the base class. We are creating the "is a" relationship.

On the other hand, polymorphism is just when we have objects from multiple classes and making them act as if they were from the same class (the base class). Based on the underlying reference type, the right method is called at run-time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Inheritance and polymorphism
C#CC# / help
5mo ago
Exam Prep OOP(Constructors , Inheritance , interface , polymorphism , Exception Handling
C#CC# / help
3y ago
inheritance vs nested class
C#CC# / help
16mo ago