+ 1

help me understand what are contractors and contractor chaining please

1st Dec 2016, 4:53 PM
victor Muthoka makuthi
victor Muthoka makuthi - avatar
2 Answers
+ 1
Constructors are functions which are member of the classes. They are executed automatically whenever an object of the class is created.
2nd Dec 2016, 9:59 AM
Vannak Saing
Vannak Saing - avatar
+ 1
Victor, do you mean constructor? If so constructor chaining is Calling a constructor from another constructor of same class  Here's an example : http://beginnersbook.com/2013/12/java-constructor-chaining-with-example/
18th Dec 2016, 7:42 AM
Dago VF
Dago VF - avatar