0

How to use constructor?

how to use constructor in programming

8th Jul 2017, 5:29 AM
MANISH KUMAR
MANISH KUMAR - avatar
2 Antworten
+ 3
Constructors are methods that is used to initiate a new object, it is usually a function with the same name as the class (not all languages uses this approach). Constructors are overloadable, you use it when you instantiate an object.
8th Jul 2017, 6:26 AM
Ipang