Computer Science, asked by Anonymous, 9 months ago

what is inheritance? in programming​

Answers

Answered by saswatkumarsingh123
0

Answer:

Inheritence is a relation between two or more classes where derived class inherits behaviour and attributes of pre existing classes...

Hope it helps....✌️✌️✌️

Answered by smartbrainz
0

Inheritance is one of the aspects of Object Oriented programming concepts.

  • Inheritance is that feature of OOPs concept that enables an object to take some characteristic feature from classes of other objects.
  • The inherited characteristics may be functions or variables. The object that inherits , is called as the sub-class and the object that is source of inheritance is called as the super-class.
  • By using inheritance, programming languages are able to re-use code. For example - if student, books and subject are the sub-classes of a super-class, 'school', then the code that applies to the sub-classes may be collectively made a part of the super-class 'school'. So, when changes are made to the code of the super-class, the changes will automatically be inherited by all the sub-classes and this is the gist of Inheritance.

To know more about inheritance, visit:

https://brainly.in/question/8550447  

Similar questions