+inherits method