<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: Object Oriented JavaScript: Inheritance</title>
	<atom:link href="/2011/05/30/object-oriented-javascript-inheritance/feed/" rel="self" type="application/rss+xml" />
	<link>/2011/05/30/object-oriented-javascript-inheritance/</link>
	<description>on web development</description>
	<lastBuildDate>Fri, 26 Oct 2018 21:40:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>By: Vishal</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-22838</link>
		<dc:creator><![CDATA[Vishal]]></dc:creator>
		<pubDate>Fri, 16 May 2014 15:33:29 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-22838</guid>
		<description><![CDATA[Nice article!]]></description>
		<content:encoded><![CDATA[<p>Nice article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maidenhead taxis</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-19293</link>
		<dc:creator><![CDATA[Maidenhead taxis]]></dc:creator>
		<pubDate>Fri, 06 Sep 2013 15:39:36 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-19293</guid>
		<description><![CDATA[Nice post. Makes OOP easy to understand]]></description>
		<content:encoded><![CDATA[<p>Nice post. Makes OOP easy to understand</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikhil</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-15313</link>
		<dc:creator><![CDATA[Nikhil]]></dc:creator>
		<pubDate>Mon, 19 Mar 2012 08:55:49 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-15313</guid>
		<description><![CDATA[Thanks a lot for making things simple. This was an awesome tutorial to qucikly brush up ur concepts.  You rock \m/]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot for making things simple. This was an awesome tutorial to qucikly brush up ur concepts.  You rock \m/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: user</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-15124</link>
		<dc:creator><![CDATA[user]]></dc:creator>
		<pubDate>Sun, 12 Feb 2012 04:06:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-15124</guid>
		<description><![CDATA[I&#039;m really unimpressed with Valikika&#039;s comment, in your infinite wisdom you have failed to see that the subject is the pont of the original post and not it&#039;s grammar. We&#039;ve all understood and for those that didn&#039;t know about inheritance this is a positive learning. Once again somebody has appointed themselves as an authority in a particular subject in this case the presumption is that they are the internets resident Grammar Cop, nice one Stoimen your post on inheritance was/is explained very well...thx.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m really unimpressed with Valikika&#8217;s comment, in your infinite wisdom you have failed to see that the subject is the pont of the original post and not it&#8217;s grammar. We&#8217;ve all understood and for those that didn&#8217;t know about inheritance this is a positive learning. Once again somebody has appointed themselves as an authority in a particular subject in this case the presumption is that they are the internets resident Grammar Cop, nice one Stoimen your post on inheritance was/is explained very well&#8230;thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tasdsf</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-14942</link>
		<dc:creator><![CDATA[tasdsf]]></dc:creator>
		<pubDate>Fri, 30 Dec 2011 10:10:43 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-14942</guid>
		<description><![CDATA[I also say &quot;This is the best article I ever read on OO Javascript…&quot;. THANK YOU!]]></description>
		<content:encoded><![CDATA[<p>I also say &#8220;This is the best article I ever read on OO Javascript…&#8221;. THANK YOU!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jocosn</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-14683</link>
		<dc:creator><![CDATA[jocosn]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 21:24:52 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-14683</guid>
		<description><![CDATA[Terrible, using OOP in javascript makes source code maintained and readed hard.]]></description>
		<content:encoded><![CDATA[<p>Terrible, using OOP in javascript makes source code maintained and readed hard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fayaz</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-14677</link>
		<dc:creator><![CDATA[Fayaz]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 11:20:41 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-14677</guid>
		<description><![CDATA[This is the best article I ever read on OO Javascript...]]></description>
		<content:encoded><![CDATA[<p>This is the best article I ever read on OO Javascript&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-14453</link>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
		<pubDate>Wed, 12 Oct 2011 08:42:20 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-14453</guid>
		<description><![CDATA[Hi Jayakumar,

yes indeed you can use the prototype object:
&lt;pre lang=&quot;javascript&quot;&gt;
Date.prototype.myFunc = function () { alert(&#039;test&#039;) }
&lt;/pre&gt;
However this is a bad practice and should be avoided. Better approach, in my opinion, is to inherit the Date object:
&lt;pre&gt;
var myDate = function() {
	this.myFunc = function() { alert(&#039;test&#039;) };
}

myDate.prototype = new Date();

var d = new myDate();

d.myFunc();
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Hi Jayakumar,</p>
<p>yes indeed you can use the prototype object:</p>
<pre lang="javascript">
Date.prototype.myFunc = function () { alert('test') }
</pre>
<p>However this is a bad practice and should be avoided. Better approach, in my opinion, is to inherit the Date object:</p>
<pre>
var myDate = function() {
	this.myFunc = function() { alert('test') };
}

myDate.prototype = new Date();

var d = new myDate();

d.myFunc();
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jayakumar</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-14452</link>
		<dc:creator><![CDATA[Jayakumar]]></dc:creator>
		<pubDate>Wed, 12 Oct 2011 08:31:34 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-14452</guid>
		<description><![CDATA[Hi,

Is it possible to add a function to the super class.

I want to add a function to Date object, I don&#039;t want to use prototype.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is it possible to add a function to the super class.</p>
<p>I want to add a function to Date object, I don&#8217;t want to use prototype.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gwg</title>
		<link>/2011/05/30/object-oriented-javascript-inheritance/comment-page-1/#comment-14440</link>
		<dc:creator><![CDATA[gwg]]></dc:creator>
		<pubDate>Tue, 04 Oct 2011 22:27:10 +0000</pubDate>
		<guid isPermaLink="false">/?p=2314#comment-14440</guid>
		<description><![CDATA[best oo sample I&#039;ve found. Thanks very much!]]></description>
		<content:encoded><![CDATA[<p>best oo sample I&#8217;ve found. Thanks very much!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
