This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
And for the ten enum classes I have ten other classes in which each of one used.
One of them is as below :
Now I have a Super class and all my ten classes extends to this super class :
// Super Class
I dont want to add getData method to each in every my suclass for getting data.So I want that in any way I can return the enum to super class and in super class I use for over enum.values();
But I didnt find a way to return a enum from a method.
May be this is not poosible.So please help me out