Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
This code show you Abstract Classes in jsp ,it is so simple to understand:)
Code:
<HTML> <HEAD> <TITLE>Abstract Classes in jsp (Codemiles Example)</TITLE> </HEAD>
<BODY> <H1>Abstract Classes in jsp(Codemiles Example)</H1>
<%!
//Define a abstract class abstract class shape {
abstract public void printshape() { localOut.println(getText()); } } //Extend the abstract class class circle extends shape { public void printshape() { out( "Print circle here "); } } %> <%
circle mycircle = new circle();
mycircle.printshape(); %> </BODY> </HTML>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )