What is the difference between Inheritance and Polymorphism? - ProProfs Discuss
Advertisement

What is the difference between Inheritance and Polymorphism?

What is the difference between Inheritance and Polymorphism?

Change Image    Delete

Asked by Jasmijn , Last updated: Nov 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

J. Rogers

J. Rogers

Who deals with teeth problems and fix them

J. Rogers
J. Rogers, Rosshazlewood, MA, Birmingham

Answered Jul 16, 2020

Polymorphism is a phenomenon that includes the presence of the more distinctive phenotypes or morphs inside one species. Humans have three distinctly different phenotypes and morphs inside one species. The black panther of big cats represents the classic polymorphism. Different morphs of polymorphic species occur at the same time and occupy the same role as other healthy individuals.

Polymorphism is a consequence of evolution, and it inherits from one generation to the next. The development of natural selection modifies the scope of inheritance for polymorphism. Inheritance is the passing on of traits to the offspring from a parental generation. However, inheritance has been a very universally used term in many areas, including computer science, law taxation, and many other social and cultural facets.

In terms of sexual reproduction, only the gametes with robust character traits can pass through their offspring population. Everything about biology is designed to promote the best possible genetic inheritance. Evolution through natural selection also takes place to flourish the best-inherited individuals.

upvote downvote
Reply 

G. GRAY

G. GRAY

Just getting better day by day

G. GRAY
G. GRAY, Writer, M.A, Liverpool

Answered Jul 13, 2020

Inheritance and Polymorphism are two aspects of the programming language of Java. Inheritance allows a class that is created to make use of properties, as well as any methods done through a superclass. Polymorphism allows for objects to act in different types of ways. Another difference between them is how they are implemented. Inheritance is implemented in levels of class, while polymorphism is implemented in method levels. They both have their own benefits for the programmer using Java. A benefit of inheritance is that it allows for codes to be reused. Polymorphism allows for methods to be called at runtimes.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.