Hi,

I think, that discussion goes a little bit beside our main thread
(servlets-interests)

In spite of that an answer

1.) all Java classes have an constructor, if there is no explicitly one,
compiler generates one
2.) if an constructor is overwritten and super() was not called
explicitly compiler generates an call to super()
( see code snippet below)
3.) in subject of servlets the constructor is empty for every servlet
(see generated servlet-code from a jsp) and
there is no sense to overwrite it because there is an init-function to
do the initialisation (see servlet-API-doc)


class A
{
  public A ()
  {
    System.out.println ("Class A");
  }
}

class B extends A
{
  public B ()
  {
    System.out.println ("Class B");
  }
}
..
      A a = new B();

output :
Class A
Class B
/*************************/
 Thomas Schuchert
 Cyberconsult
 Beratungsgesellschaft f�r Neue Medien mbH
 [EMAIL PROTECTED]
 030 - 39 99 05 46
/*************************/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to