Constructors
A regular method except:
- its name is the same as the name of the Class
- it has no type class prefix of void
Use to initialize fields//Constructor: name n, year d hired, salary spublic Employee(String n, double s, int d) {name= n; pay= s; hireDate= d; }
c = new Employee(�millett�, 50000, 1999)