Different Access Modifier of a class in C#. Private vs Internal

Private: - Private members are only accessible within the own type (Own class).

Internal: - Internal member are accessible only within the assembly by inheritance (its derived type) or by instance of class.

enter image description here

Thanks for Visiting.

Comments

Popular Posts