Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

differnce between constructor and method  RSS feed

 
Nazia nite
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are 3 major difference between constructor and method
 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to be an object, the object must have
Identity
State
Behavior

See constructor tutorial and follow the arrows on to Implementing Methods et seq
HTH
[ June 08, 2003: Message edited by: Donald R. Cossitt ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!