RE: abstract class

2002-12-05 Thread Mohan Radhakrishnan
. Thanks, Mohan -Original Message- From: Brian Hickey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 5:56 PM To: Struts Users Mailing List Subject: Re: abstract class Mohan, Two different behaviors is what you wish then you need to derive from a concrete base class

Re: abstract class

2002-12-05 Thread V. Cekvenich
Users Mailing List Subject: Re: abstract class Mohan, Two different behaviors is what you wish then you need to derive from a concrete base class. Abstract classes are more likely to provide conformance to an architecture or signature template. In Struts, folks usually inherit from the Action

abstract class

2002-12-04 Thread Mohan Radhakrishnan
Hi, If an action has two different behaviours then it is advised to use an abstract method in the base class that the sub-action can override. Our base action's perform method has to pass control to a sub action's method for the varying behavior. But if we use an abstract method then the

Re: abstract class

2002-12-04 Thread Brian Hickey
to super() to a base class, you are correct, it cannot be an abstract class. I would suggest that it shouldn't be in most any case, but I don't know your architecture. It is also early and I am not sure of your terminology. A base class is a super class (standard inheritance diagrams display that way

RE: abstract class

2002-12-04 Thread Andrew Hill
in a constructor - in that case it must be the first statement, but for normal methods it can be called anytime. -Original Message- From: Brian Hickey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 20:26 To: Struts Users Mailing List Subject: Re: abstract class Mohan, Two

Re: abstract class

2002-12-04 Thread Brian Hickey
: Wednesday, December 04, 2002 7:44 AM Subject: RE: abstract class snip So your sub class (a derivation of your base class) needs to call into its super class, it is done with a super() call. The super() call is (and must be) the first statement in the subclass's overriding method. /snip Thats