Map / Methods
🧩 Methods
A method is a named piece of code you can call with different inputs. Parameters bring values in, return sends one back, and void methods just do something.
- static
- return
- void
- parameters
- overloading
- scope
🛠 You will build: A small math toolkit
0 / 10 done
- 🔮 Predict 1. Following a call
- 👣 Trace 2. Each call gets its own variables
- 🔮 Predict 3. Can a method change my variable?
- 🧩 Order 4. Keep it in range
- ✏️ Fill in 5. Method headers
- 🐞 Debug 6. Missing return
- 🐞 Debug 7. Printing nothing
- 🔧 Modify 8. Add a parameter
- ⌨️ Write 9. Is it prime?
- ⌨️ Write 10. Same name, different types
Unit check
Earlier activities again, with new inputs and edge cases. They also come back on the map as review the next day.