Skip to main content

Posts

Showing posts from February, 2014

JavaScript is too cool and so is the inheritance.

I can say million words about Javascript, it is so cool. We will start with the   inheritance  in the JAVASCRIPT which will make our concepts a little shaky as it implements prototypical inheritance which are not bad the point is we are not used to code in JS. As almost everyone in this world are from JAVA or .NET background. Inheritance is an important topic in most programming languages. In the classical languages (such as Java), inheritance (or extends) provides two useful  services. First, it is a form of code reuse. If a new class is mostly similar to an existing  class, youonly have to specify the differences. Patterns of code reuse are extremely  important because they have the potential to significantly reduce the cost of software  development. The other benefit of classical inheritance is that it includes the  specification of a system of types.  This mostly frees the programmer from having to  write exp...