Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

why default constructors are need?

Status
Not open for further replies.

lovekang

Programmer
Feb 16, 2006
86
KR
The code instuctors in my project, say I need default constructors.
but I don't know why.

As I know the default constructors are automatically added and compiled by the jvm unless any constructors other than default constructor exist.

if default constructor is not there, and I use the default consturctor compile time error found.

any comments are welcomed.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top