Wednesday, January 1, 2014

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

Pikacu Pantsless
Pikacu Pantsless 6:46pm Jan 1
Constructor is function with the same name of class...
Comment History
Quvenzhané Wallis
Quvenzhané Wallis6:45pm Jan 1
Used for Initializing !!!
Chandler Canterbury
Chandler Canterbury6:44pm Jan 1
CONSTRUCTOR is a special member function to any class...it is used such that the object is initialized at the same time it is called...although is a member function it doesn't have any body....it takes arguments but not objects...but it takes reference of objects as arguments....it's main purpose is, as said initialization of objects...There are two types : 1) PARAMATERIZED 2) DEFAULT ....if we does not provide constructor compiler provides the default constructor....and if we provide it is parametarized...it must be under public section of the class...
Ruli Desrian
Ruli Desrian6:43pm Jan 1
Which is automatically invoked while intializing the object......
Thre r 2 types of constructors
1.parameterized constructor
2.default constructor
Ramdani Lestaluhu
Ramdani Lestaluhu6: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.
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.
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