Question: inheritance has a relationship c++?
Answer: In object-oriented programming, the concept of IS-A is a totally based on Inheritance, which can be of two types Class Inheritance or Interface Inheritance. ... Wherever you see an extends keyword or implements keyword in a class declaration, then this class is said to have IS-A relationship.