<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>算法交易-Bali &#187; Java</title>
	<atom:link href="http://libaocun.com/tag/java/feed" rel="self" type="application/rss+xml" />
	<link>http://libaocun.com</link>
	<description>Think globally, act locally.</description>
	<lastBuildDate>Fri, 06 Jan 2012 02:51:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Polymorphism/inheritance pop quiz about Java</title>
		<link>http://libaocun.com/polymorphism-inheritance-pop-quiz-about-java</link>
		<comments>http://libaocun.com/polymorphism-inheritance-pop-quiz-about-java#comments</comments>
		<pubDate>Wed, 14 Oct 2009 15:46:06 +0000</pubDate>
		<dc:creator>Bali</dc:creator>
				<category><![CDATA[一些老文章]]></category>
		<category><![CDATA[ACT]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.balionweb.com/?p=237</guid>
		<description><![CDATA[前面几篇都是关于THINK的。Well，动动嘴皮子总是很容易的，虽然在某些情况下吹牛也是一项必备的技能。其实，我一直很hands-on，而且enjoy hands-on, 每天都写code。也许我哪天做了CEO还是会写的，就因为喜欢。听说Intel SSG的前老大叫（什么什么来着），一人之下的位子，兴致来了，还会连上debugger，帮你调程序，呵呵。 好，上code，开始ACT。有两个class A, B，B is inherited from A. 问在下列几种情况下，会出现什么结果，并解释为什么。 public class B extends A {       public int foo(int t) {             return 0;       } } (1) public class A {       public void foo(int t) {             return;       } } (2) public class A {       public int foo(int [...]]]></description>
			<content:encoded><![CDATA[<p>前面几篇都是关于THINK的。Well，动动嘴皮子总是很容易的，虽然在某些情况下吹牛也是一项必备的技能。其实，我一直很hands-on，而且enjoy hands-on, 每天都写code。也许我哪天做了CEO还是会写的，就因为喜欢。听说Intel SSG的前老大叫（什么什么来着），一人之下的位子，兴致来了，还会连上debugger，帮你调程序，呵呵。</p>
<p>好，上code，开始ACT。有两个class A, B，B is inherited from A. 问在下列几种情况下，会出现什么结果，并解释为什么。</p>
<blockquote><p><strong>public</strong> <strong>class</strong> B <strong>extends</strong> A {</p>
<p>      <strong>public</strong> <strong><span style="text-decoration: underline;">int</span></strong> foo(<strong>int</strong> t) {</p>
<p>            <strong>return</strong> 0;</p>
<p>      }</p>
<p>}</p></blockquote>
<p>(1)</p>
<blockquote><p><strong>public</strong> <strong>class</strong> A {</p>
<p>      <strong>public</strong> <strong>void</strong> foo(<strong>int</strong> t) {</p>
<p>            <strong>return</strong>;</p>
<p>      }</p>
<p>}</p></blockquote>
<p>(2)</p>
<blockquote><p><strong>public</strong> <strong>class</strong> A {</p>
<p>      <strong>public</strong> <strong>int</strong> foo(<strong>int</strong> t) {</p>
<p>            <strong>return</strong> 1;</p>
<p>      }</p>
<p>}</p></blockquote>
<p>(3)</p>
<blockquote><p><strong>public</strong> <strong>class</strong> A {</p>
<p>      <strong>private</strong> <strong>int</strong> <span style="text-decoration: underline;">foo(</span><strong><span style="text-decoration: underline;">int</span></strong><span style="text-decoration: underline;"> t)</span> {</p>
<p>            <strong>return</strong> 1;</p>
<p>      }</p>
<p>}</p></blockquote>
<p>(4)</p>
<blockquote><p><strong>public</strong> <strong>class</strong> A {</p>
<p>      <strong>public</strong> <strong>int</strong> foo(<strong>int</strong> t, <strong>int</strong> s) {</p>
<p>            <strong>return</strong> 1;</p>
<p>      }</p>
<p>}</p></blockquote>
<p>尤其是将要面试的同学，如果这个东西还没搞清楚，那么&#8230;除非你算法很强。另外，哪位同学知道，如何贴code吗？格式要保持Eclipse那样，非图片。</p>
]]></content:encoded>
			<wfw:commentRss>http://libaocun.com/polymorphism-inheritance-pop-quiz-about-java/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

