Category : ambiguity

I am from the C# background. Therefore, I can’t understand how to solve this problem. Let us look at the following class: ProjectManager.hh #ifndef INPUT_CPP_FILES_PROJECT_MANAGER_HH #define INPUT_CPP_FILES_PROJECT_MANAGER_HH #include <string> #include "Employee.hh" #include "Programmer.hh" #include "Tester.hh" namespace OrganizationNamespace { class ProjectManager : public Programmer, public Tester { public: ProjectManager() {} void print() const { std::cout << ..

Read more

I’ve already reviewed several similar questions at StackOverflow, but nothing helps. I can’t understand why the keyword using in my class NetflixCanada does not resolve the ambiguity. What I want to achieve: to access 2nd time a private method from NetflixUkraine class. Anyway, this is the code: #include <iostream> using namespace std; void greetings(){ cout ..

Read more