Код: Выделить всё
class User {
public:
std::string name;
int userID;
User(std::string name, int id) : name(name), userID(id) {}
virtual void displayInfo() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79139868/how-to-effectively-implement-inheritance-in-c-for-a-library-management-system[/url]
Мобильная версия