c++ - inheritance and namespaces -
i trying first useful object oriented program namespace usage. have base class b in namespace ns. if try inherit base class inheritance work, should use ns::b in class decleration below, case? or there more accepted sytle inheritance syntax?
namespace ns { class d: public ns::b{ ... }; }
best, umut
if d
in namespace ns
, don't have qualify ns::b
, since d
, b
in same namespace. can use class d : public b
.
Comments
Post a Comment