All Questions
2
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 ...
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 ...