Yes, struct can inherit from class in C++.
In C++, classes and struct are the same except for their default behaviour with regards to inheritance and access levels of members.
C++ class
- Default Inheritance = private
- Default Access Level for Member Variables and Functions = private
C++ struct
- Default Inheritance = public
- Default Access Level for Member Variables and Functions = public