couple more chapters

This commit is contained in:
2021-12-25 19:33:47 +01:00
parent 36fe7cf4a7
commit 777369fe09
2 changed files with 11 additions and 0 deletions

5
ch5.md Normal file
View File

@@ -0,0 +1,5 @@
// create a struct Rectangle, make an instance of it, then calculate the area using a function
// use dbg! at various points
// make a new rectangle instance from the first one
// when does the original rectangle stay valid, when not?
// add an area method to the Rectangle struct