![]() |
|
|
+ Search |
![]()
|
Mar 22nd, 2008 21:34
ha mo, Himanshu Jain,
You can create a constroctor by declaring a method that has the same
name as the class that contains it.The constructor will be called
automatically when an object is instantiated from the class.
Class point
{
//properties
var $x – 0;
var $y = 0;
//constructor
function Point($x , $y)
{
//set up code goes here
}
}
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com