1. SAP Help Portal
ABAP Keyword Documentation
NEW - Instance Operator:
Regarding option A: "The static type of lhs [the left side
goif1] must be more general than or identical to the data type type [cl1] specified after NEW or the data type of .... In other words
the reference in type must be able to be assigned to lhs in an up cast." Since cl1 implements if1
this condition is met.
2. SAP Help Portal
ABAP Keyword Documentation
Polymorphism - Using Interface Reference Variables:
Regarding option B: "An interface reference variable iref allows a user to access the interface components of the object to which it points." This confirms that goif1 can access method m1.
Regarding option E: This same principle confirms that goif1 cannot access class-specific components like m2
as they are not part of the interface's definition.
3. SAP Help Portal
ABAP Keyword Documentation
CALL METHOD - Statically:
Regarding option C and D: "If meth is an interface method
the name of the interface intf and the interface component selector (~) must be specified before the name of the method meth." This validates the syntax in option C and invalidates the direct call in option D (in the absence of an alias).