Home / Questions / What does the following statement mean? Employee staff = new Employee ( );
Explanatory Question

What does the following statement mean? Employee staff = new Employee ( );

👁 107 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

This statement creates a new object of class Employee. The newly created object is assigned to a variable named staff which is of Employee type. The object can be accessed using staff variable.