What is a local class in C ++?

A class declared inside a function becomes local to that function and is called Local Class in C++. A local class name can only be used locally i.e., inside the function and not outside it. The methods of a local class must be defined inside it only. A local class can have static functions but, not static data members.16 Kas 2021

Sizin İçin Seçtik  How do you use enums?

Leave a Reply

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