14.6 R6 useful methods

  • $print() - Modifies the default printing method.
    • $print() should always return invisible(self).
  • $initialize() - Overides the default behaviour of $new().
    • Also provides a space to validate inputs.