Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Learn
Object-Oriented Programming II

attr_accessor

If we want to both read and write a particular variable, there's an even shorter shortcut than using attr_reader and attr_writer. We can use attr_accessor to make a variable readable and writeable in one fell swoop.

Report a Bug
If you see a bug or any other issue with this page, please report it here.
Code Editor