aspose file tools*
The moose likes Java in General and the fly likes plz explain oveloading of constructor in enum with example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "plz explain oveloading of constructor in enum with example" Watch "plz explain oveloading of constructor in enum with example" New topic
Author

plz explain oveloading of constructor in enum with example

kapilg gupta
Greenhorn

Joined: Jun 14, 2006
Posts: 10
plz explain withthe code and flow how constructor overloading is implemented in enum please give complete details of the flow of code
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Is is sensible to overload the constructor in an enum?
It doesn't sound a good idea at all.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Originally posted by kapilg gupta:
plz explain withthe code and flow how constructor overloading is implemented in enum please give complete details of the flow of code


Please show us an attempt to do your own work first.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
attempt to do your own work first
I tried it myself and did manage to come up with an overloaded constructor, but it was obviously a totally daft way to set up an enum.
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Originally posted by Campbell Ritchie:
I tried it myself and did manage to come up with an overloaded constructor, but it was obviously a totally daft way to set up an enum.


Obviously. I just loathe when someone posts "plz explain this with details" without bothering to show us that they've actually attempted to do it themselves or providing any context. It just screams "plz do my work for me without any effort on my part" which I'm not particularly fond of. If they had posted their own attempt or mentioned what led them to this and why they're asking then that might be enough.
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Duplicate Post

I already gave reply of your question at here

please explain the code and please anyone give example of overloading in enum

If you have any query please post in the same thread.


Naseem


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
kapilg gupta
Greenhorn

Joined: Jun 14, 2006
Posts: 10
Originally posted by Ken Blair:


Obviously. I just loathe when someone posts "plz explain this with details" without bothering to show us that they've actually attempted to do it themselves or providing any context. It just screams "plz do my work for me without any effort on my part" which I'm not particularly fond of. If they had posted their own attempt or mentioned what led them to this and why they're asking then that might be enough.


i dont want anyone do my work i have written twice before the code of enum in my previous question and i have no problems writing it again but when i did it earlier i got a reply of duplicate post
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9053
    
  12
What if you provide a link to the thread where your code is.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Originally posted by kapilg gupta:


i dont want anyone do my work i have written twice before the code of enum in my previous question and i have no problems writing it again but when i did it earlier i got a reply of duplicate post


Then shouldn't you be continuing this discussion in the thread where you asked the first time?
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Anyway I am posting it again...

Following code overloads constructor as well as method.



Regards

Naseem
[ June 20, 2006: Message edited by: Naseem Khan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: plz explain oveloading of constructor in enum with example