How do I write a class A such that it has some att...
# announcements
c
How do I write a class A such that it has some attributes public and some attributes only accessible by class B? I’m thinking about something like friends in C++, or
fileprivate
visibility in Swift.