Computer Science, asked by PragyaTbia, 1 year ago

Explain the process of inheritance.

Answers

Answered by satyam3014
0
Inheritance is the process by which genetic information is passed on from parent to child. This is why members of the same family tend to have similar characteristics. Inheritance describes how genetic material is passed on from parent to child.
Answered by theking20
0

Explanation the process of inheritance is as follows:

  • Inheritance is a running Process in Programming languages like, Java, C++ etc. This is basically the concept of features flowing from Ancestors.
  • In this concept, characteristics are inherited by the Subclass from a Superclass.
  • This involves properties, methods, in some cases, even the Parameters.In case of Java, the 'extends' keyword has to be used to created a subclass with the features of a superclass.
  • The syntax to use this feature would be:

class <Name_of_subclass> extends <Name_of superclass> { ///new fields and methods defined }

Similar questions