finished ch7.2 and started ch7.3

This commit is contained in:
2025-01-14 21:53:50 -07:00
parent fe021038de
commit c6299ee523
5 changed files with 81 additions and 5 deletions

View File

@ -70,3 +70,9 @@ pub struct Asparagus {}
```
## Grouping Related Code in Modules
used to group code together and make easier to reuse
modules allow for the control of privacy, implementations needs to be declared as public otherwise it will be private by default not available to other modules if private
public modules and implementations can allow for different code to depend on it
this should be used to organize code like a file directory