posted 15 years ago
Hi Ranchers,
I was working on enum and found this observation. When we have to override a general behaviour for a specific behaviour we override the default implementation with our implementation but the rules of overridng applies here that is if the generic method signature is public we cannot make the overriden implementation private. Agreed. But when i have a generic method declared to be private but i override this with public method my overriden method does not execute, instead the generic method gets executed. Kindly find the code snippet below for reference.
Thanks and Regards,
Pradeep
[ November 03, 2008: Message edited by: Pradeep Kumar ]