Checked for error when a class inherits from an undefined class.