• Post Reply Bookmark Topic Watch Topic
  • New Topic

One more problem!  RSS feed

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again all, In my code i am to be returning the variable? account like so.

return account;

however, in order to do this, i need to create an account object using a custom constructor.

The idea behind constructors its beyond me at this point and if I could get some help from something besides my text book I would be very thankful.


Yours truly,
A guy who has no idea what hes doing.

 
Ranch Hand
Posts: 87
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Captain wrote:Hello again all, In my code i am to be returning the variable? account like so.

return account;

however, in order to do this, i need to create an account object using a custom constructor.



I could not understand your question.
What do you want to return object or variable?
 
Rancher
Posts: 1776
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read Constructor Tutorials

Any specific question you have writing constructors? Did you get any error or face any issue in them? Could you please share them...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!