If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

What are the Types of constructors?

Started by beingchinmay, 11-30-2016, 05:07:34

Previous topic - Next topic

beingchinmayTopic starter

•   Static Constructor

•   Default Constructor

•   Private Constructor

•   Copy Constructor

•   Parameterized Constructor


emma rabah

Constructor:-Constructor is used for Initializing the values to the data members of the Class.
Default Constructor:- Default Constructor is also called as Empty Constructor which has no arguments
Parameterized Constructor :-his is Another type  Constructor which has some Arguments and same name as class name but it uses some Arguments.
Copy Constructor:-In this Constructor we pass the object of class into the Another Object of Same Class. As name Suggests you Copy, means Copy the values of one Object into the another Object of Class .
  •  


If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...