<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-TW">
		<id>https://fgchen.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_114</id>
		<title>SCJP 1.6版考題 114 - 修訂歷史</title>
		<link rel="self" type="application/atom+xml" href="https://fgchen.com/wiki/index.php?action=history&amp;feed=atom&amp;title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_114"/>
		<link rel="alternate" type="text/html" href="https://fgchen.com/wiki/index.php?title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_114&amp;action=history"/>
		<updated>2026-04-13T14:07:41Z</updated>
		<subtitle>本 Wiki 上此頁面的修訂歷史</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://fgchen.com/wiki/index.php?title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_114&amp;diff=1306&amp;oldid=prev</id>
		<title>Ikk：新頁面:  Given:  10. class line{  11.   public class Point{public int x, y;}  12.   public Point getPoint(){return new Point();}  13. }  14. class Triangle{  15.   public Triangle(){  16.     ...</title>
		<link rel="alternate" type="text/html" href="https://fgchen.com/wiki/index.php?title=SCJP_1.6%E7%89%88%E8%80%83%E9%A1%8C_114&amp;diff=1306&amp;oldid=prev"/>
				<updated>2013-03-30T04:20:07Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  Given:  10. class line{  11.   public class Point{public int x, y;}  12.   public Point getPoint(){return new Point();}  13. }  14. class Triangle{  15.   public Triangle(){  16.     ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; Given:&lt;br /&gt;
 10. class line{&lt;br /&gt;
 11.   public class Point{public int x, y;}&lt;br /&gt;
 12.   public Point getPoint(){return new Point();}&lt;br /&gt;
 13. }&lt;br /&gt;
 14. class Triangle{&lt;br /&gt;
 15.   public Triangle(){&lt;br /&gt;
 16.     //insert code here&lt;br /&gt;
 17.   }&lt;br /&gt;
 18. }&lt;br /&gt;
  &lt;br /&gt;
 &lt;br /&gt;
 Which code, inserted at line 16, correctly retrieves a local instance of a Point object?&lt;br /&gt;
   A. Point p = Line.getPoint();&lt;br /&gt;
   B. Line.Point p = Line.getPoint();&lt;br /&gt;
   C. Point p = (new Line()).getPoint();&lt;br /&gt;
   D. Line.Point p = (new Line()).getPoint();&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:medium;&amp;quot;&amp;gt;解答&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size: medium;&amp;quot;&amp;gt;Ans: D   &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:medium;&amp;quot;&amp;gt; 解說:&lt;br /&gt;
 getPoint是物件成員，要存取這個物件成員要先建立Line物件&lt;br /&gt;
 Point是在Line中定義，要存取須用Line.Point&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/span&amp;gt;	&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
{{SCJP 1.6版考題講解}}&lt;/div&gt;</summary>
		<author><name>Ikk</name></author>	</entry>

	</feed>