Skip to main content

All Questions

1 vote
0 answers
39 views

Why below code gives error even if the public function in derived class is the one being called..?

In the following code a public function has overriden a private virtual function in base class ob->hello() shall call hello() in derived class which is public. why do i still see an error that ...
pinky's user avatar
  • 11
0 votes
3 answers
320 views

C++ virtual function from privately inherited class, promoted to public in derived class declaration

I have the following scheme: class Interface { virtual ~Interface() { } virtual void foo() const = 0; virtual void bar() const = 0; } //Interface is derived privately mostly for ...
galinette's user avatar
  • 9,162