I am going through some practice certification questions. One question that I am confused about, and disagree with the answer is along the lines of:
CLASS cls DEFINITION. PUBLIC-SECTION. METHODS: m1. ENDCLASS. CLASS cls IMPLEMENTATION. PUBLIC-SECTION. METHOD m1. .. ENDMETHOD. ENDCLASS. DATA: c1 TYPE REF to cls, c2 TYPE REF to cls. START-OF-SELECTION. CREATE OBJECT c1. c2 = c1.
The question asks which of the following statements are true, and the answer key says the following is <i><b>not</b></i> true, which I believe <i><b>is</b></i> true:
"Only one instance of method m1 exists."
Any opinions? Even though two references point to the same instance of the class, only one instance of the class exists. Is the trick that instances themselves have an existence, but their methods don't exist at all? I would believe that.