Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Enum
duhit Choudhary
Ranch Hand
Posts: 64
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
why we use enums or in what condition we make enums???
plzz give any example along with the answer....thanks in advance....
dennis deems
Ranch Hand
Posts: 808
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
duhit Choudhary
Ranch Hand
Posts: 64
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
fine till now...... but what about having the abstract method in an enum???
and again how this method can perform differently for different constants???
Martin Vashko
Sheriff
Posts: 3837
66
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Abstract method has to be implemented by every and each enum constant; these implementations may perform different things, of course.
Some time ago I've posted
an example
which contained abstract method in enums. Maybe it could help you too.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Enums
enums
Enums over constants
Enums
enums
More...