Jul 14 2007

Javascript Classes

java script classes

Hello,

Javascript supports different types of OOPS concept. You know basically javascript
is a functional lanugage.
We can make these function to classes and objects as follows:

<input type=”button” name=”man1_butt”
id=”man1_butt” onClick=”man1.get_name(); man1.get_age();”
value=”Man 1″>
<input type=”button” name=”man2_butt” id=”man2_butt”
onClick=”man2.get_name(); man2.get_age();” value=”Man 2″>

We can implement inheritance also using javascript. See below the example:

Click Read more for example


<input type=”button” onClick=”car_.display();” value=”car”>
<input type=”button” onClick=”bus_.display();” value=”Bus”>

________________Thank you___________________

TAGS:

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Sponsors

    Itslife Online
    Advt on sajithmr.com
    Advt on sajithmr.com
    Advt on sajithmr.com

Recent Comments

  • Binny V A: Thanks for the post - love the picture ;-)
  • TheAnand: A lot of people are seeing errors with google video chat….is there any other software which has to be...
  • Alex: Wow, interresting analysis you have done! I’m trying to run GoogleVoiceAndVideoSetup on linux, using...
  • Mella Fitriansyah: Nice plugin, I will try to add this plugin in my blog…
  • Mella Fitriansyah: Nice Info, Sir i will reading your another post success for you

Recent Readers

JOIN MY COMMUNITY!

Recent Posts