← BYTES
C++·Starter·Ref: 8.1.6

What does inheritance allow a class to do in C++?

Have a question about this video? Mention reference 8.1.6 when you contact us.

a.Overload operators
b.Acquire the properties and behavior (members and methods) of another (base) class
c.Allocate memory dynamically
d.Catch exceptions
Inheritance lets a derived class reuse and extend a base class's members and methods, modeling an 'is-a' relationship and enabling code reuse plus polymorphism when combined with virtual functions.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES816#C