refactor: 6th section first two lectures exercises and questions

This commit is contained in:
Inanc Gumus
2018-10-22 22:00:34 +03:00
parent 2e650b9a1e
commit 411be187ab
33 changed files with 114 additions and 49 deletions

View File

@ -0,0 +1,14 @@
## What happens when you don't use a declared variable in the block scope?
* Nothing, it will work fine
* It will get removed automatically
* The program won't compile *CORRECT*
## What happens when you don't use a declared variable in the package scope?
* Nothing, it will work fine *CORRECT*
* It will get removed automatically
* The program won't compile
## How can you prevent unused variable error?
* You can change the variable's name
* You can use a blank-identifier to discard it *CORRECT*
* You can change the variable's type