Class Tree
Constructors, overrides, self vs static, traits, abstract, readonly and magic methods.
0 / 7 levels · 0 / 21 ★Start playing ›
Class Tree
Classes are a family tree. A child inherits from its parent, can do things its own way, and only involves the parent when it calls parent:: by name. self is the family member who wrote the line; static is the one you actually called. Traits are skills copied in, not relatives.
Your rulebook
Finish a level to add its rule. Fill the book and you can explain all of this in an interview.
- 1Finish Who builds the object to unlock this rule.
- 2Finish Override, then ask the parent to unlock this rule.
- 3Finish self or static to unlock this rule.
- 4Finish Two skills, one name to unlock this rule.
- 5Finish The unfinished parent to unlock this rule.
- 6Finish Written once to unlock this rule.
- 7Finish Asking for what isn't there to unlock this rule.