Md Sarfaraj
Give an real life example of inheritance?

Give an real life example of inheritance?

By Md Sarfaraj in Java and .NET on Sep 02 2021
  • Ashok Vardhan
    Oct, 2021 11

    A family tree getting their features in any form and being represented.

    • 1
  • Antony Quinn J
    Oct, 2021 24

    Inheritance is used for reusable of one object's properties. 30 students learn maths from 1 Teacher in one class per hour. (Students inherit the knowledge from a Each Teacher) 100 Students Learn Science from 1 Teacher. Each subject covered by one student. Totally 5 Teachers cover 5 subjects to more than 100 students. So, end of the School or college days, the 100 students become a Skilled person in Various Domain by 5 Teachers. (Note: There is no 100 Teachers for 100 Students ) Here 5 Teachers knowledge or Skill is reused to the 100 Students, every time. This is the concept of Inheritance (Re Usable). Thanks for reading!..

    • 0
  • Ashok Vardhan
    Oct, 2021 11

    A family tree getting their features in any form and being represented.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS