Sat Jan 10, 2009 1:43 am
<HTML>
<HEAD>
<TITLE>Restricted protected Access(codemiles code)</TITLE>
</HEAD>
<BODY>
<H1>Restricted protected Access(codemiles code)</H1>
<%!
javax.servlet.jsp.JspWriter localOut;
class myobject
{
protected void start() throws java.io.IOException
{
out.print("Am a new object <BR>");
}
}
class book extends myobject
{
public void open()
{
out.println("Open book");
}
}
%>
<%
out.println("Creating a new book object and using a protected function...<BR>");
book a = new book();
a.start();
a.open();
%>
</BODY>
</HTML>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.