Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

differnce between constructor and method

 
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic