The statement is true. Inheritance occurs in an IS-A relationship. Subclasses or kid classes are the names given to classes that inherit.
HAS-A relationship, on the other hand, is composition. The IS-A relationship is entirely inherited in OOP. This indicates that a kid class is a certain kind of parent class. Inheritance is a relationship of the "IS-A" type. Inheritance, which can be of two sorts (Class Inheritance or Interface Inheritance), is the foundation of the "IS-A" relationship. When we construct a new class by using code from an existing class, it is called inheritance. Hierarchical: - Several derived classes inherit from a single base class in this style of inheritance.
Learn more about foundation here-
https://brainly.com/question/8645052
#SPJ4