* Added getType() as a vitrual method.