What does the following statement mean?
Employee staff = new Employee ( );
278 Likes
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
165 Likes
A class is also referred to as 'Object Factory'. Comment.
How will you define a software object?
Define class and object with an example.
Why is a class known as composite data type?