answersLogoWhite

0

What is inheriting?

User Avatar

Anonymous

11y ago
Updated: 3/11/2020

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
3y ago

What else can I help you with?

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 are the chances of inheriting blue eyes, a recessive gene, from both parents?

The chances of inheriting blue eyes, a recessive gene, from both parents is 25.


What is a noun for inherit?

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


What are the chances of inheriting a recessive gene for hair color?

The chances of inheriting a recessive gene for hair color depend on the genetic makeup of your parents. If both parents carry the recessive gene, there is a 25 chance of inheriting it. If only one parent carries the gene, the chances are lower.


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.


Where does a king get his power?

The king gets their power from inheriting it from their family


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

underwear


How can you share friend functions between classes?

By inheriting the classes


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.