Roel De Nijs wrote:
Raghavendra Desoju wrote:It is printing the value from SuperClass not the Interface. Are there any rules defined for these kind of situations?
As you can see from your code snippet, the class definition always beats the interface version. You'll find more detailed information in this topic.
And what do you think about this code
Hope it helps!
PS. I added "(OCA8 only)" to the subject of this topic to indicate this question is only appropriate if you are preparing for the OCA8 exam and OCA7 aspirants get not confused by this question. Hope that's ok with you!