<?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_053</id>
		<title>SCJP 1.6版考題 053 - 修訂歷史</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_053"/>
		<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_053&amp;action=history"/>
		<updated>2026-04-13T12:57:07Z</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_053&amp;diff=1374&amp;oldid=prev</id>
		<title>Ikk：新頁面:  Insert six modifiers into the code such that it meets all of these requirements:  1. It must be possible to create instances of Alpha and Beta from outside the packages in which they ...</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_053&amp;diff=1374&amp;oldid=prev"/>
				<updated>2013-03-30T07:17:59Z</updated>
		
		<summary type="html">&lt;p&gt;新頁面:  Insert six modifiers into the code such that it meets all of these requirements:  1. It must be possible to create instances of Alpha and Beta from outside the packages in which they ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt; Insert six modifiers into the code such that it meets all of these requirements:&lt;br /&gt;
 1. It must be possible to create instances of Alpha and Beta from outside the packages in which they are defined.&lt;br /&gt;
 2. When an object of type Alpha (or any potential subclass of Alpha) has been created, &lt;br /&gt;
    the instance variable alpha may never be changed.&lt;br /&gt;
 3. The value of the instance variable alpha must always be &amp;quot;A&amp;quot; for objects of type Alpha.&lt;br /&gt;
&lt;br /&gt;
[[檔案:SCJP53-1.png]]&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: &amp;lt;BR&amp;gt;[[檔案:SCJP53-2.png]]   &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;
 此題的需求&lt;br /&gt;
   1．必須要能從套件外部建立Alpha與Beta的物件ß 這表示Alpha與Beta必須是public，而且其建構子也必須為public&lt;br /&gt;
   2．Alpha物件變數永遠不被改變&lt;br /&gt;
   3．Alpha物件變數必須遠是字串”A”&lt;br /&gt;
 要滿足2與3必須控制外界不能改變Alpha的物件變數，也就是將alpha變數設為private&lt;br /&gt;
 Beta建構子有呼叫Alpha(String)，所以這個建構子必須設成Beta可以存取，也就是設成protected&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>