What is Inheritance? Inheritance is a mechanism in which one class acquires the property of another class . For example, a child inherits the traits of his/her parents.
What is Inheritance? Inheritance is a mechanism in which one class acquires the property of another class . For example, a child inherits the traits of his/her parents.