C# Access Specifiers

PUBLIC: All the class members declared under public will be available to everyone

PRIVATE: The class members declared as private can be accessed only by the functions inside the class

PROTECTED: The class members declared as

protected are inaccessible outside the class but they can be accessed by subclass of the class

INTERNAL: The class members declared as

internal are accessible by other functions and objects lying within the assembly. Assembly is the produced.dll or .exe from .NET Code

PROTECTED INTERNAL: Memebers are accessible within the same assembly as well as inheritance. It is a combination or internal and protected Access Specifiers

Comments

Popular posts from this blog

Kotlin Math Operations and Functions Overview

Wear OS Android UI Application in Kotlin

Kotlin Android Program (QCR) Application Codes That Read Text in Photos