Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Saturday, December 1, 2007

How to Call Superclass Constructors in java



Calling Superclass Constructors



Calling Superclass Constructors


<%!
javax.servlet.jsp.JspWriter localOut;

class a
{
a() throws java.io.IOException
{
localOut.println("In a\'s constructor...
");
}
}

class b extends a
{
b() throws java.io.IOException
{
localOut.println("In b\'s constructor...
");
}
}
%>
<%
localOut = out;

b obj = new b();
%>

No comments: