tsld041.htm

来自「an excellent java tutorial for the ones 」· HTM 代码 · 共 59 行

HTM
59
字号

<HTML>

<HEAD>
<META HTTP-EQUIV="Context-Type" CONTEXT="text/html;charset=windows-1252">
<meta name="GENERATOR" content="Microsoft Internet Assistant for PowerPoint 97">
 <TITLE>Abstract</TITLE> 
</HEAD>

<BODY     >

 <H1>Abstract</H1> 
 <P><UL>
- Classes 
<BR><UL>
<LI> can抰 be instantiated
</UL></UL><UL>
- Methods 
<UL>
<LI> can抰 have any implementation
<LI> need implementation from their children</UL></UL></P>
<P><UL>
abstract class Shape {
<BR></UL><UL>
     protected int edges_num;	
</UL><UL>
     abstract void draw();	
</UL><UL>
}
</UL><UL>

</UL><UL>
class Star extends Shape{
</UL><UL>
	Star(int _edges) {
</UL><UL>
	edges_num = _edges;
</UL><UL>
	}
</UL><UL>
	public void draw() {}
</UL><UL>
}</UL></P>
<P></P> 
<P>
<TABLE>
  <TD HEIGHT=100 WIDTH=100> <A HREF="tsld040.htm">Previous slide</A> </TD>
  <TD HEIGHT=100 WIDTH=100> <A HREF="tsld042.htm">Next slide</A> </TD>
  <TD HEIGHT=100 WIDTH=150> <A HREF="tsld001.htm">Back to first slide</A> </TD>
  <TD HEIGHT=100 WIDTH=150> <A HREF="sld041.htm">View graphic version</A> </TD>
</TABLE>
<BR>
</P>



</Body>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?