Computer Science, asked by UjjwalPriyadarshi, 1 year ago

Define the term 'inheritance'.

Answers

Answered by Arayansingh12
1
In object-oriented programming, inheritance is the concept that when a class of objects is defined, any subclass that is defined can inherit the definitions of one or more general classes. This means for the programmer that an object in a subclass need not carry its own definition of data and methods that are generic to the class (or classes) of which it is a part. This not only speeds up program development; it also ensures an inherent validity to the defined subclass object (what works and is consistent about the class will also work for the subclass).
Answered by C0R0NA
0

What is Inheritance?

=> The passing on of genetic traits from parents to offspring.

  • It refers to the transmission of genes from one generation to another.
  • These genes contain the genetic information which is passed on to the progeny by inheritance.
Similar questions