Wednesday, January 1, 2014

Re: [Page Not Found] I have a lot of questions on Constructors! But...

Ramdani Lestaluhu
Ramdani Lestaluhu 6:42pm Jan 1
Contractor is special type of function whose name is same a class name. It is used to initialize the values of variables .contractors are called automatically as object of class is created.
About static constructor : static constructor contains only static variables. No need to call static constructor . Static constructor executes only once.
Comment History
Tukƌng Gorengan Yg Biƌsa-Lewat
Tukƌng Gorengan Yg Biƌsa-Lewat6:41pm Jan 1
it is use to initialize the value of the object or method.
Githa Nafeeza
Githa Nafeeza6:40pm Jan 1
constructors are such functions having same name as class and they are sutomatically calledas we make the object of that class
Eugene
Eugene6:39pm Jan 1
Constructor's in object oriented program are a special category of methods/functions used to initialize all of the local variables of a class for any object. Constructor as the same name as of the class. if no constructor is defined than a constructor already exists which may set all the values of variables to null.
Bararade Yeuh
Bararade Yeuh6:38pm Jan 1
Constructer is a special type of member function having same name as that of it's class and gets called upon creation of an object inorder to construct it and initialize it if required...... It doesn't take any argument .Not even void.............By simply declaring an object the default constructer of the associated class gets called..........Or by passing parameter explicitely during object declaration
Raka Law
Raka Law6:37pm Jan 1
one which constructs without ordering it to do, at the time of it's initialization itself.
View All Comments
Original Post
Nö-One Can-Steal Your-Dreams
Nö-One Can-Steal Your-Dreams6:17pm Jan 1
I have a lot of questions on Constructors! But let's start with this. Who can answer most efficiently?

~Murtaza

View Post on Facebook · Edit Email Settings · Reply to this email to add a comment.

No comments:

Post a Comment