3 # Go back to your Person class and make the first_name and last_name
6 # Move the title attribute from the Employee class to the Person
7 # class. Adjust full_name in the Person class so it includes the
8 # title, which is optional.
10 # Add a predicate (has_title) and clearer (clear_title) to the title
13 # If a person has no title, the full_name method should simply return
14 # the first and last name. Use the title's predicate method in the new
17 # Go back to the Employee class
19 # Make the title attribute default to the string 'Worker' for the
20 # Employee class. You can now inherit full_name from the Person class
21 # rather than re-implementing it.
23 # Add a read-write salary_level attribute. This will be a number from
24 # 1-10 (but we will deal with enforcing this later). This attribute
25 # should default to 1.
27 # Make the salary attribute read-only. Also make it lazy. The default
28 # should be calculated as salary_level * 10000. Use a builder method
29 # to set the default. Name the builder "_build_salary". This attribute
30 # should not be settable via the constructor.
32 # Go back to the HasAccount role and make the balance default to 100.
39 use MooseClass::Tests;
44 MooseClass::Tests::tests03();