Extended DefectObj Class with getter and setter methods