answersLogoWhite

0


Best Answer

The closest definition of inheritance in java given by the dictionary is: "something, as a quality, characteristic, or other immaterial possession, received from progenitors or predecessors as if by succession"ml

noun

1.

something that is or may be inherited; property passing at the owner's death to the heir or those entitled to succeed; legacy.

2.

the genetic characters transmitted from parent to offspring, taken collectively.

3.

something, as a quality, characteristic, or other immaterial possession, received from progenitors or predecessors as if by succession: an inheritance of family pride.

4.

the act or fact of inheriting by succession, as if by succession, or genetically: to receive property by inheritance.

5.

portion; birthright; heritage: Absolute rule was considered the inheritance of kings.

6.

Obsolete . right of possession; ownership.

User Avatar

Wiki User

βˆ™ 10y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

βˆ™ 5mo ago

In science, "inherited" typically refers to traits that are passed down from one generation to the next through genetic information. These traits can include physical characteristics, behaviors, or susceptibility to certain diseases. Inheritance is a key concept in the study of genetics and evolution.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 13y ago

The two most common reasons to use inheritance are

• To promote code reuse (You don't want your colleague sitting right next to you to write the same validation code in his class while he can obviously use the better code you have written :-) )

• To use polymorphism

Let's begin with reuse.

A Class can re-use or in java terms inherit features/code of another class by just extending it.

Ex:

public class Child extends Parent {

}

In the above example by virtue of the extends keyword, all the public code inside the parent class is available for use inside the child class.

A common design approach is to create a fairly generic version of a class with the intention of creating more specialized subclasses that inherit from it. For example:

class Car {

public void goForADrive() {

System.out.println("driving a car");

}

// more code

}

class Ferrari extends Car {

public void takeFerrariForADrive() {

System.out.println("driving a Ferrari");

}

// more code

}

public class TestCars {

public static void main (String[] args) {

Ferrari car = new Ferrari();

car.goForADrive();

car.takeFerrariForADrive();

}

}

Outputs:

driving a car

driving a Ferrari

Notice that the Ferrari class inherits the generic goForADrive() method from the less-specialized class Car, and also adds its own method, takeFerrariForADrive(). Code reuse through inheritance means that methods with generic functionality that could apply to a wide range of different kinds of cars -don't have to be reimplemented. That means all specialized subclasses of Car are guaranteed to have the capabilities of the more generic superclass. You don't want to have to rewrite the goForADrive() code in each of your specialized car classes of a racing game.

But you probably already knew that. You've experienced the pain of duplicate code when you make a change in one place and have to track down all the other places where that same piece code exists. So it is logically and obviously easier to manage changes if all common code is available at one single place.

The second use of inheritance is to allow your classes to be accessed polymorphically-a capability provided by interfaces as well, but we'll get to that in a minute. Let's say that you have a CarLauncher class that wants to loop through a list of different kinds of Car objects, and invoke goForADrive() on each of them. At the time you write this class, you don't know every possible kind of Car subclass that anyone else will ever write. And you sure don't want to have to redo your code just because somebody decided to build a new Car six months later.

The beautiful thing about polymorphism is that you can treat any subclass of Car as a Car. In other words, you can write code in your CarLauncher class that says, "I don't care what kind of object you are as long as you inherit from (extend) Car. And as far as I'm concerned, if you extend Car then you've definitely got a goForADrive() method, so I know I can call it."

Imagine we now have two specialized subclasses that extend the more generic Car class, Ferrari and Porsche:

class Car {

public void goForADrive() {

System.out.println("driving a car");

}

// more code

}

class Ferrari extends Car {

public void takeFerrariForADrive() {

System.out.println("driving a Ferrari");

}

// more code

}

class Porsche extends Car {

public void takePorscheForADrive() {

System.out.println("driving a Porsche");

}

// more code

}

Now imagine a test class has a method with a declared argument type of Car, that means it can take any kind of Car. In other words, any subclass of Car can be passed to a method with an argument of type Car. This code

public class TestCars {

public static void main (String[] args) {

Ferrari ferrari = new Ferrari();

Porsche Porsche = new Porsche();

goForADrive(ferrari);

goForADrive(Porsche);

}

public static void doDrive(Car car) {

car.goForADrive();

}

}

Outputs:

driving a car

driving a car

The key point is that the doDrive() method is declared with a Car argument but can be passed any subtype (in this example, a subclass) of Car. The method can then invoke any method of Car, without any concern for the actual runtime class type of the object passed to the method. There are implications, though. The doDrive() method knows only that the objects are a type of Car, since that's how the parameter is declared. And using a reference variable declared as type Car-regardless of whether the variable is a method parameter, local variable, or instance variable-means that only the methods of Car can be invoked on it. The methods you can call on a reference are totally dependent on the declared type of the variable, no matter what the actual object is, that the reference is referring to. That means you can't use a Car variable to call, say, the takePorscheForADrive() method even if the object passed in is of type Porsche.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 15y ago

inherited # To receive (property or a title, for example) from an ancestor by legal succession or will. # To receive by bequest or as a legacy. # To receive or take over from a predecessor: The new administration inherited the economic problems of the last four years. # Biology. To receive (a characteristic) from one's parents by genetic transmission. # To gain (something) as one's right or portion.

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 7y ago

money or property is

the definition

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 12y ago

a behavoir not learned yet

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does inherited mean in science?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Biology

The study of how traits are inherited through the interactions of what is science of genetics?

Genetics is the science that studies how traits are inherited through the interactions of genes, which are segments of DNA that code for specific traits. It examines how genetic information is passed down from one generation to the next and how variations in genes can lead to different traits in individuals.


What is inherited variation science?

Inherited variation in science refers to differences in traits that are passed down from one generation to the next through genetic inheritance. This variation plays a key role in evolution by providing the raw material for natural selection to act upon, ultimately driving changes in populations over time. Studying inherited variation helps scientists understand how genetic diversity contributes to the adaptation and survival of species.


What is the name of the science that studies which traits are passed from parents to offspring?

The science that studies which traits are passed from parents to offspring is called genetics. It focuses on the heredity and variation of inherited characteristics.


What does chromosomes mean in science?

Chromosomes are thread-like structures made of DNA and proteins that carry genetic information in the form of genes. They are found in the nucleus of cells and are responsible for passing on hereditary traits from one generation to the next. Chromosomes come in pairs, with one set inherited from each parent.


What does it mean to say that a gene is linked to a chromosome?

When a gene is linked to a chromosome, it means that the gene is physically located on that chromosome. This means that the gene is inherited along with the chromosome it is located on, and may be inherited together with other nearby genes on the same chromosome.

Related questions

The study of how traits are inherited is?

it is the science of genetics.


Is inherited and inherited traits the same thing?

I think you mean inherited and inherited traits - in which case yes - they're the same.


What is the study of how traits are inherited through the interaction of Is the science of genetics?

Genes.


What is a good titile for my science project about are fingerprints inherited?

fingerprints


What does inherited trait mean?

An inherited trait is a feature or characteristic of an organism that has been passed on to it in its genes.


The study of how traits are inherited through the interactions of what is science of genetics?

Genetics is the science that studies how traits are inherited through the interactions of genes, which are segments of DNA that code for specific traits. It examines how genetic information is passed down from one generation to the next and how variations in genes can lead to different traits in individuals.


What does spatial science mean?

science mean having


What mean inherited?

Inherited means to receive money, a property or a title as an heir of death of the previous holder. Wrong An inherited behavior is one that is not learned. It's done automatically.


What does it mean when you have small webbed feet?

You inherited the genes for them to develop.


What dΕ“s inherited mean?

passed on from many family generations


What does the word prism mean in science?

what does prism mean in science language


What does heritics mean?

adjectiveable to be inherited, in particular.Biology (of a characteristic) transmissible from parent to offspring.adjective: heritableLaw (of property) capable of being inherited by heirs-at-law.