lLike C++,
constructors are implicitly invoked
lThey allow us to initialize data members to other values than their zero equivalent
lNote, unlike C++ data members are automatically initialized prior to a constructor invokation (to their zero equivalent) ---
even if you provide a constructor
lThe default
constructor has no arguments
lIf you write a constructor with arguments, then the default constructor
is not provided automatically
and you cannot create objects without arguments specified
•class list {
•list () {
///blablabla}
•list (int arg) {
//blablabla }
•//we create objects
via;
•list l = new list(10); //uses the int arg version
lYes, you can overload multiple constructors just so the argument lists
are unique