<script language="C#" runat="server">
public class Clock {
public int Second;
public int Minute;
public int Hour;
public static int ClockCounter = 0;
public static int AddClock(){
ClockCounter += 1;
return ClockCounter;
}
public void SetTime(int intSec, int intMin, int intHour)
{
Second = intSec;
Minute = intMin;
Hour = intHour;
}
}
</script>
<HTML>
<BODY>
<%
Clock objClock = new Clock();
objClock.SetTime(4,6,45);
Clock.AddClock();
Response.Write(Clock.ClockCounter);
%>
</BODY></HTML>
|