Where can I find out more about class D access modifiers?

I cannot find a good link for D modifiers for accessing a programming language class.

I know that public, and privatepretty much guaranteed, but I guess that there are more, I just can not find a good source of information.

Can someone please give me a good link?

+5
source share
1 answer

You can check the official link at dlang.org

:

  • private, available only in the same module (file)

  • packageavailable in only one package

  • protected, is a module + inherited classes

  • public (also by default) is available wherever

  • export

+13

All Articles