Why do we need nested classes in C++?

Nested classes are just like regular classes, but: they have additional access restriction (as all definitions inside a class definition do), they don’t pollute the given namespace, e.g. global namespace .

Sizin İçin Seçtik  Kâr amacıyla mal veya hizmet üretmek veya pazarlamak için üretim faktörlerini planlı tutarlı ve akılcı bir sistem ve bir araya getiren teknik ve ekonomik birime ne ad verilir?

Leave a Reply

Your email address will not be published. Required fields are marked *