What are nested classes explain with example?

A nested class is a member and as such has the same access rights as any other member . The members of an enclosing class have no special access to members of a nested class; the usual access rules shall be obeyed. For example, program 1 compiles without any error and program 2 fails in compilation.

Sizin İçin Seçtik  Is Swift very different than Python?

Leave a Reply

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