sum method

int sum()

Implementation

int sum(){
  return (x+y+z).toInt();
}