• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

meaning??

 
Donald Wynn
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is this code doing:
InputVars inputParamMethods = new InputVars();
InputVars[] inputParams;
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Donald Wynn:
What is this code doing:
InputVars inputParamMethods = new InputVars();
InputVars[] inputParams;

You defined a InputVars class before, now you create an object of class InputVars.
Then you create an array of class InputVars object.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that in the first statement you are declaring a variable of type InputVars and then setting it equal to the result of calling the constructor InputVars().
In the second statement you are ONLY declaring a variable which is an array of InputVars. You did not initialize it with any value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic