Is it possible to override the equals() operator (ie. for customer classes where equality may be determined by 2 or more fields matching).
Is it possible to override the equals() operator (ie. for customer classes where equality
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you mean overloading “==” as a synonym for equals() then you can’t, as ActionScript doesn’t offer operator overloading. Just write an equals() method for your class and use that…