Quick Participants / Methods Availability Modifiers

I have a very simple Swift question for which there probably is an obvious answer, but I can't find it.

Like methods and variables in a class declared as:

  • Private?
  • Protected (i.e. accessible to children)?
  • Internal (i.e. available for classes inside the same package / namespace)?

Thanks in advance.

+4
source share

Source: https://habr.com/ru/post/1542994/


All Articles