Share via

C# Program

Varun Bonkinpallewar 1 Reputation point
2021-12-14T04:02:40.073+00:00

Create a class named “Employee” with data members – employee id, name,
salary.
a. Write no-parameter constructor and one parameterized constructor.
Use “this” reference.
b. Write two public methods – Accept and Display to accept the details
of an employee and display them.
c. Create three objects of the class and display the details.
d. Display the count of objects created.
[Note: Employee id should be automatically generated. Hint: Use static
member]

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.