This is not possible in C++, it will give you an error about redefining already-defined classes. If you’d like to share behavior, consider inheritance.
This is not possible in C++, it will give you an error about redefining already-defined classes. If you’d like to share behavior, consider inheritance.