KnowledgeBoat Logo

Computer Applications

What does the following statement mean?

Employee staff = new Employee ( );

Objects & Classes

ICSE 2008

286 Likes

Answer

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.

Answered By

169 Likes


Related Questions