Magic methods are implicitly invoked by a programming language when some event or language construct is used.