posted 18 years ago
the answer is false because it is not neccessarily the default constructor. The default constructor is the one the compiler provides.
so meaning that, such as:
class Employee{
Employee() // explicitly type constructor with no-arg, this one is not provided by compiler.
{
// do code
}
}
---------------------
class Employee{
// you do not type the constructor out, so the compiler will provide you a default constructer, which is Employee(){}
}
------------------
if not understand by my code, go to page 316 on K&B book.
all the best
From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)