Jan 5, 2005 #1 esdee Programmer Apr 12, 2001 143 US in c++ i can write public static boolean operator<(someClass pt1, someClass pt2) thus allowing me to write pt1<pt2 can i do this in java, and how ? thanx
in c++ i can write public static boolean operator<(someClass pt1, someClass pt2) thus allowing me to write pt1<pt2 can i do this in java, and how ? thanx
Jan 5, 2005 #2 sedj Programmer Aug 6, 2002 5,610 You cannot - Java does not support operator overloading. Click here to learn Ways to help with Tsunami Relief -------------------------------------------------- Free Database Connection Pooling Software http://www.primrose.org.uk Upvote 0 Downvote
You cannot - Java does not support operator overloading. Click here to learn Ways to help with Tsunami Relief -------------------------------------------------- Free Database Connection Pooling Software http://www.primrose.org.uk