Category : access-modifiers

Why is this not possible? class DBHelper { public: bool open(const char* filepath, const char* query = ""); private: bool open(const char* filepath); } If I want to access the function open(filepath) of my library from another class it won’t compile, eventhough the compiler should take the public function with the default argument. I don’t ..

Read more