CAN YOU DECLARE A PRIVATE CLASS IN A NAMESPACE?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 913  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    Can you declare a private class in a namespace?

    The classes in a namespace are internal, by default. However, you can explicitly declare them as public only and not as private, protected, or protected internal. The nested classes can be declared as private, protected, or protected internal.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!