• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing Integers  RSS feed

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"4 parameter constructor - sets the 4 passcode int values to the 4 passed integers and marks the phone as unlocked"

I'm not quite sure what this means?
 
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It means your class should have a constructor, that takes 4 int values as parameters, and assign these values to 4 instance variables.
 
haruki jay
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swastik Dey wrote:It means your class should have a constructor, that takes 4 int values as parameters, and assign these values to 4 instance variables.

thank you!!
 
Swastik Dey
Rancher
Posts: 1815
15
Android Eclipse IDE Java Java ME
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!