struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From temp temp <>
Subject [JAVA] abstractg class calling abstract method in constructor
Date Fri, 23 Mar 2007 20:30:04 GMT
      I have a super  class  with an abstract method and a non  default constructor and it
calls this abstract method in its constructor
       This abstract method is implemented in the  base class.
      First thing  base class constructor does is call  super()   
      // super  class
      public abstract class CustomRuntimeDocument extends  AbstractDocument {
            public  CustomRuntimeDocument(XmlObject aXmlObject, String aFileName   ) {
      protected abstract String getFilePrefix();
      } // end of class
      // base class
      public class CustomRuntimeFormDocument extends  CustomRuntimeDocument{
            public  CustomRuntimeFormDocument(Form   aForm  , String aFileName) {
            protected String  getFilePrefix() {
                  return "formbuilder_";
      Is this ok or might generate some problems ?
      Thanks & Regards
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message