passing argument through constructor

A simple question, I want to initialize my variables in a class using a constructor. the data will be taken from the user, stored in local variable in MAIN and it should be passed to constructor, by when doing it in action, its wrong, is there any special form here for giving argument to the constructor?

NwN, thanks for your reply, because when i run the code, compiler returns an error stating that this function has not been declared, but when i replace those variables with actual integers there will be no problem.