Ans is A both are true
obivously
- Inheritance provides for code resuse is straightforward
for •Public inheritance creates sub-types
–Inheritance only applies to user-defined classes (and structs)
–A publicly derived class is-a subtype of its base class
–Known as “inheritance polymorphism”