Important, that depends on whether you find the name hiding it provides useful or not. Other name hiding strategies include namespaces (used heavily in Boost) and the private implementation idiom (used heavily in Qt).
Uh huh.Means that can we also do our work without the use of nested class. I have seen many examples but the use of nested class in c++ is very low.
Yes. To provide a tenuous link between this post, which has nothing to do with Qt, and Qt QTextCodec has a nested class ConverterState. The STL-style iterators on Qt containers used a nested class "iterator" and "const_iterator".So is there any use of nested class? If yes then could you please give me an example on nested class?
Why do I get the feeling this is an assignment question for school?





Reply With Quote
Bookmarks