Implement a class employee an employee has a name string


Implement a class Employee. An employee has a name (string) and a salary (double).

1. Write a default constructor.

2. Write a constructor with two parameters (name and salary).

3. Write methods to return the name and salary.

Solution Preview :

Prepared by a verified Expert
Business Management: Implement a class employee an employee has a name string
Reference No:- TGS01661440

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)