2. Consider the following class diagram. Which are the legal statements and which are the illegal. Explain why they are
Posted: Sun May 15, 2022 12:58 pm
2. Consider the following class diagram. Which are the legal statements and which are the illegal. Explain why they are legal or illegal. (1 marks) (a) m=t (b) x=0 M (c) Ort (d) o=m х D) Write a code for equals method which tests the reference equality var1 =var2. (var 1 and var 2 are referring the same object). (1 Mark)