what's difference b/t polymorphism andinheritance
rizwan anjum 0 Newbie Poster
Recommended Answers
Jump to PostIn OOP terminology, polymorphism is the ability for sub-classes to extend or even change the behavior they inherit from their parent classes. For example, if you have a class Animal, which has an
abstract
method namedspeak()
:public abstract class Animal { public abstract void …
Jump to PostIt may also be useful to point out that polymorphism is a characteristic of your design, whereas inheritance is a feature of your development system.
For exammple when in winforms, you drag a button and a texbox on your form, you experience polymorphism. This is made possible because both textboxes …
All 7 Replies
rizwan anjum 0 Newbie Poster
rizwan anjum 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
PerplexedB 2 Newbie Poster
Loosipher 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.