Jul 14 2007
Javascript Classes
- 0 Comments
![]()
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___________________




