I am trying to create my first useful object-oriented program using a namespace. I have a base class B that is in the NS namespace. If I try to inherit this base class in order to get the inheritance work, I have to use NS :: B in the class declaration, as shown below, is this really so? Or is there a more widespread siat for this inheritance syntax?
namespace NS
{
class D: public NS::B{
...
};
}
Best, Umut
source
share