// This is a homework question so I don't need the solution, just help getting there...
How do I incorporate undefined variables for an Object and use them in calculations?
I need to write a program that calculates pay for hours worked under 40 and also overtime pay using Employee Objects. The hours worked and wage are user inputted. How do I declare the variable_name and construction parameters without knowing them?
The line you've highlighted is creating an object called Employee. The name of the object your creating will be called "name" and your passing 2 variables through to the constructor (name and salary).
You only need to pass the information through if that's the design of the Employee object.