answersLogoWhite

0


Best Answer

In Computer Programming, inheritance essentially refers to the re-use of code.

For example, in C++, a base class will contain functions and members which can be attributed to other classed. This base class can then be inherited by another class, assuming all of the base class functions and member, but also keeping its own.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an inheritance.Explain different types of inheritance?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Different types of inheritances?

Single Inheritance Multiple Inheritance Multilevel Inheritance


What is an inheritance Explain different types of inheritance in c?

C is not an object oriented language and therefore has no native support for inheritance.


Explain different types of inheritance of object oriented programming?

== ==


What are the different types of inheritence?

there are several type of inheritance are exist like 1. single inheritance 2. double inheritance 3. multiple 4. multilevel 5. heirarchical inheritance


Does hybrid inheritance consist of ANY two types of inheritance?

There are only two types of inheritance to begin with: single inheritance and multiple inheritance. Since they are mutually exclusive there is no such thing as hybrid inheritance.


What is public inheritance in java?

Inheritance is a Java feature by which we can reuse code and programming logic from one class in another class. We implement Inheritance using the extends keyword.Ex: public class Ferrari extends Car {…}Here the Ferrari Class will extend features from the Car Class.This is Inheritance. The different types of Inheritance are:Single InheritanceMulti-Level InheritanceMultiple Inheritance (Java supports only Partial Multiple Inheritance) andHybrid Inheritance


Types of heredity?

Mendelian inheritance, incomplete dominance, codominance, multiple alleles, polygenic inheritance, and sex-linked inheritance.


What type of inheritance pattern are these rabbits likely displaying?

Types of dominance, multiple alleles, sex linked inheritance, polygenic inheritance and maternal inheritance.


What are the names of some genetic inheritance patterns?

Types of dominance, multiple alleles, sex linked inheritance, polygenic inheritance and maternal inheritance.


Can you have inheritance without polymorphism?

Yes. Inheritance and polymorphism are two different things. Inheritance is when the attributes and methods of a class are inherited by a deriving class that creates a more specialized type. Polymorphism is when two methods exist with the same name, differing only in argument types, or in class type. The former type, argument types, is an example of ad-hoc polymorphism that does not even require a class.


Is it possible to implement method overriding in each and every type of inheritance?

Yes. Method Overriding is not possible without inheritance and it can be done in all possible types of inheritance.


Types of inheritance does the Common Type System support?

asdasd