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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -