aspose file tools*
The moose likes Struts and the fly likes Why ActionForm is class not interface? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why ActionForm is class not interface?" Watch "Why ActionForm is class not interface?" New topic
Author

Why ActionForm is class not interface?

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
Hi all,

Can somebody tell me why ActionForm is a class not an interface?

I could have made it an interface and the corresponding implementing class and can use that.

Thanks & regards,

Kousik


Thanks in Advance,
Kousik
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8912
    
    8

I can only speculate at the intentions of the developers (you could always search the developer mailing lists) but what jumps out at me is that it declares instance variables and methods that do things. One can't do that with an interface.
[ May 28, 2008: Message edited by: Joe Ess ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
Consider Paul's rocket mass heater.
 
subject: Why ActionForm is class not interface?