2013년 8월 10일 토요일

operator overloading





Java doesn't offer operator overloading!




So, We can't write code like this;


      Complex a, b, c;
      a = b + c; 



Instead, We must write code like this;


      Complex a, b, c;
      a = b.add(c);





Surprise!

댓글 없음:

댓글 쓰기