Add abstract getype method