One of the four pillars of object-oriented programming (OOP), inheritance establishes a "is-a" relationship between objects. For example, a "Cat" object can be treated in code as any other "Animal" object because a "Cat" is-a "Animal".
                
                    Mathieu Guindon 
                
                
- 75.6k
- 18
- 194
- 468
 
                