answersLogoWhite

0

What is inheriting?

Updated: 3/11/2020
User Avatar

Wiki User

10y ago

Best Answer

In computer terms, or more specifically in software design terms, inheritance is a method used with object oriented programming. In object oriented programming, object types (classes) are defined to model portions of a solution. Inheritance provides a simple method to derive one class from another, such that the derived class can make use of the original class' features and behavior, and enrich it with new aspects.

Many, but not all, programming languages also support restricting the original class' features, some even allow changing aspects of the original class.

For example, a simple Chess game could define a class for a figure. The Figure class would have one of two colors (black, white), and it would have a current position on the board, or it would be designated "off the board".

One could now derive a new class from the Figure class, for example, a King, a Queeen, a Knight, etc. Each of the derived classes ill have the Figure class' attributes (color, position, on/off board) thanks to inheritance, but each would have specific characteristics (for example different validation for a planned move, which determine whether an intended move is possible).

User Avatar

Tobin Boyle

Lvl 10
1y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

In computer terms, or more specifically in software design terms, inheritance is a method used with object oriented programming. In object oriented programming, object types (classes) are defined to model portions of a solution. Inheritance provides a simple method to derive one class from another, such that the derived class can make use of the original class' features and behavior, and enrich it with new aspects.

Many, but not all, programming languages also support restricting the original class' features, some even allow changing aspects of the original class.

For example, a simple Chess game could define a class for a figure. The Figure class would have one of two colors (black, white), and it would have a current position on the board, or it would be designated "off the board".

One could now derive a new class from the Figure class, for example, a King, a Queeen, a Knight, etc. Each of the derived classes ill have the Figure class' attributes (color, position, on/off board) thanks to inheritance, but each would have specific characteristics (for example different validation for a planned move, which determine whether an intended move is possible).

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

To inherit something usually means to be left a material gain due to a death in the family. Inheritance is usually dolled out through a will or, if no will was in place, it is given to the next of kin.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Inherited is a characteristic that is passed from parent to offspring.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

The passing on of traits from one generation to the next.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is inheriting?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the main antonym for inherit?

its nonherit because your not inheriting i your non-inheriting


What actors and actresses appeared in Inheriting Henry - 2012?

The cast of Inheriting Henry - 2012 includes: Jacqui Heffernan as Henry


What is a noun for inherit?

The abstract noun forms of the verb to inherit are inheritance and the gerund, inheriting.


What are the release dates for Inheriting Trouble The Estate of Tammy Wynette - 2012?

Inheriting Trouble The Estate of Tammy Wynette - 2012 was released on: USA: 8 November 2012


What percentage of patients with Sickle Cell Disease is not of African decent?

Sickle Cell Disease can be found in patients of any nationality or decent. Both parents must carry the recessive gene for this disease, and only then their offspring have a 25% chance of inheriting the disease. Those of African decent have approximately an 8% chance of inheriting the disease, Hispanics have about a 0.07% chance of inheriting the disease, and whites have roughly a 0.001% chance of inheriting the disease.


How can you share friend functions between classes?

By inheriting the classes


What is the probability of the offspring inheriting the tongue rolling gene?

underwear


Where does a king get his power?

The king gets their power from inheriting it from their family


What is the probability of inheriting two p alleles?

i love you to all of the colores


How do you get perfect straight white teeth naturally?

You get them naturally by inheriting them from your parents.


What is a characteristic that can be inherited?

such a characteristic that can be inherited is a child inheriting a parent's looks.


How do you spell air to the the thrown?

Heir is referring to a prince inheriting the throne.