internal vs public Visibility
Control your module's surface area deliberately.
Visibility Controls Access
Kotlin visibility modifiers decide who can call your code. They are how you separate the module's front door from its private rooms.
public Is the Default
If you write nothing, a declaration is public. That means everyone, including both apps, can see and call it from outside the module.
fun greet(name: String) = "Hi, " + nameAll lessons in this course
- Design a Small Public API
- internal vs public Visibility
- Organize Packages Inside the Module
- Document the API for Both Teams