PublicClass.ProtectedMethod C# (CSharp) 메소드

ProtectedMethod() 보호된 메소드

protected ProtectedMethod ( ) : void
리턴 void
    protected void ProtectedMethod() 
    {
    }

Usage Example

예제 #1
0
    public void SomeMethod()
    {
        PublicClass c = new PublicClass();

        c.PublicMethod();           //Valid
        c.ProtectedMethod();        //Invalid, not accessible
        c.PrivateMethod();          //Also invalid
    }